1.2.4 • Published 3 years ago
drag-and-drop-list v1.2.4
DragAndDropList javascript class
To make UL/LI HTML list dragAndDroped easily. It uses vanilla javascript.
Install
$ npm install drag-and-drop-list
Demo
Local demo
$ npm run start
Example
import { DragAndDropList } from '../DragAndDropList.js';
const dndList = new DragAndDropList();
DragAndDropList.init();
Contructor Parameters
const dndList = new DragAndDropList(first, second);
- first: 'replace' || 'before' -> drag and drop mode
- second: callbackFunction -> callback function to run when drag and drop finish