You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<code>validateUnembedding</code> - a function that allows you to control which elements can be unembedded when the paper is put into the <code>embeddingMode</code><i>(see above)</i>.
2
+
<br>
3
+
The function signature is <code>function(childView)</code> and should return
4
+
<code>true</code> if the <code>childView</code> element can be unembedded from the parent and become a new root.
5
+
<br>
6
+
By default, all elements can become roots (the function returns <code>true</code> no matter what).
7
+
<br>
8
+
The callback is called at the end of drag & drop action and if <code>false</code> is returned, the position of the element, as well as the parent reference is reverted to the values before dragging.
9
+
<br>
10
+
The callback is called only on elements which were previously embedded in another element.
0 commit comments