1.2.4 • Published 3 years ago

drag-and-drop-list v1.2.4

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
3 years ago

DragAndDropList javascript class

To make UL/LI HTML list dragAndDroped easily. It uses vanilla javascript.

Install

$ npm install drag-and-drop-list

Demo

Codepen 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
1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago