drop($options = array())
Make an element accept draggable elements and act as a dropzone for
dragged elements.
Options
•accept - Selector for elements this droppable will
accept.
•hoverclass - Class to add to droppable when a draggable is
over.
Event Options
•drop - Event fired when an element is dropped into the drop
zone.
•hover - Event fired when a drag enters a drop zone.
•leave - Event fired when a drag is removed from a drop zone
without being dropped.
Example use
$js->get('#element'); $js->drop(array(
'accept' => '.items',
'hover' => 'onHover',
'leave' => 'onExit',
'drop' => 'onDrop',
'wrapCallbacks' => false
)); If you were using the jQuery engine the following code would
be added to the buffer:
$("#element").droppable({accept:".items", drop:onDrop,
out:onExit, over:onHover}); ''Note'' about MootoolsEngine::drop
Droppables in Mootools function differently from other libraries.
Droppables are implemented as an extension of Drag. So in addtion
to making a get() selection for the droppable element. You must
also provide a selector rule to the draggable element. Furthermore,
Mootools droppables inherit all options from Drag.