DragItem
Interface which adds ability to drag items for components with datastore inside.
Events
onAfterDrop | fires after drag-n-drop was finished |
onBeforeDrag | fires before the mouse button is pressed and the cursor is moved over a draggable item |
onBeforeDragIn | fires before a dragged element is moved over the droppable area |
onBeforeDrop | fires before a dragged element is released over the droppable area |
onBeforeDropOut | fires before a dragged element is released over the droppable area |
onDragOut | fires when a dragged element is moved outside of the droppable area |
Properties
drag | enables or disables drag-and-drop |
dragscroll | enables autoscroll of component during drag-n-drop |
Other
$drag | method called when drag operation initiated |
$dragHTML | defines how dragged item will look |
$dragIn | method called when item moved on possible drop landing during dnd |
$dragMark | method called during dnd when some item in the component need to be marked as active drop target |
$dragOut | method called when item moved out of possible drop landing during dnd |
$drop | method called when item dragged and dropped on valid target |
$dropAllow | can be redefine if you need custom drop rules |
Back to top