| |||||
The plugin handles drag and drop collision events, and also provides collision-avoidance actions.
Collision and containment settings are hierarchical and extensible, allowing for complex interactions.
A pure jQuery version is available here.
Here are some key features of "JQuery UI Draggable Collision":
· Extends jquery-ui-draggable
· Provides events for collision-detection during dragging
· Just as with jquery-collision, can provide protrusion events as well (escape from a restraint)
· Can prevent collisions of the draggable and obstacles
· Can prevent protrusions of the draggable from multiple restraints
· Can make selected children of the draggable the "colliding entities", allowing a draggable that is a bucket of other objects, where those child objects are the ones that collide with or avoid obstacles
· Can be configured to have multiple classes of obstacles and restraints under the same draggable
Requirements:
· JavaScript enabled on client side
· jQuery JavaScript Library
· jQuery UI 1.8.12 or higher
· JQuery Collision 1.0.1 or higher

Via: JQuery UI Draggable Collision 1.0.2






0 Comment:
Post a Comment