effdnd
Описание
Self-confident Drag and Drop
Языки
- TypeScript98,1%
- JavaScript1,9%
9 месяцев назад
9 месяцев назад
2 месяца назад
2 месяца назад
2 месяца назад
2 месяца назад
2 месяца назад
9 месяцев назад
2 месяца назад
9 месяцев назад
README.md
EffDND
EffDnD is a self-confident Drag and Drop library based only on the browser APIs.
Some features
- lightweight
- zero-dependency
- framework agnostic
- touch events support
- customizable styles
Links
Examples
Installation
Type in your terminal:
Quick start
In short, uses two custom web component:effdnd
is triggerring drag-and-drop,effdnd triggerindicates the areas of the layout that will participate in the drag-and-drop process (play their roles).effdnd-actor
The web component can "play" several roles:effdnd-actor
- the item being moved.,item- the target of the move,target- movement boundaries.scope
To define both web components, simply call the function, and use the results of the call to create event listenersuseDnD
That's all. Enjoy simplicity.