-
Notifications
You must be signed in to change notification settings - Fork 0
Library: DnD
Eugene Lazutkin edited this page Jul 3, 2018
·
2 revisions
The DnD package provides a support for a generic drag-and-drop functionality, where an object or objects can be dragged from one place and dropped at a target causing various actions.
The following modules are provided:
- start() is the main module, which initiates a DnD procedure.
- common is a collection of useful helpers to cover most common cases.
- rearrangeable is a collection of drop actions suitable for rearranging lists.
The demo: https://researchnow.github.io/reno/pages/dnd.html
In a module-enabled environment (like Babel) individual modules can be accessed like that:
import start from '@researchnow/reno/src/utils/dnd/start';In global-based environments (like a browser) it is frequently mapped to Reno.utils.dnd like that: Reno.utils.dnd.start.