# htmlelement-dnd
The lastest version of this document is available on Github > htmlelement-dnd
Installation
npm install htmlelement-dnd --save
or
yarn add htmlelement-dnd --save
Without installation
Prerequisites for browser
Availables Operations
- DND.makeDroppable(container,options) : create the container droppable, elements draggables can be drop on this zone.
- options : set remove property to true to remove element on drop
- DND.makeDraggable(container) : declare all children of container as element draggable
- DND.allowDropCallback : function called to allow/disallow drop dragging element. Must return boolean.
Specials Events
- DND.drag : called when the drag operation start
- DND.drop : called when the drop operation end
example