diff --git a/examples/allowFrom-callback/index.html b/examples/allowFrom-callback/index.html new file mode 100644 index 000000000..8e6167616 --- /dev/null +++ b/examples/allowFrom-callback/index.html @@ -0,0 +1,321 @@ + + +
+ + +Demonstration of the `allowFrom` option with callback:
+This container can only be moved by grabbing the blue handle above.
+ +Try clicking here... it won't work!
+Advanced demonstration combining allowFrom and ignoreFrom:
+This example shows how to use both options together with callback functions to create sophisticated access control logic.
+Logic: allowFrom determines allowed zones, then ignoreFrom can override and forbid specific zones.
+This example shows how to use a callback function with the ignoreFrom option.
Try dragging the elements below. Some areas are configured to be ignored.
+Basic draggable area
+Draggable area with advanced logic
+