simple-list-draggable

0.0.5 • Public • Published

simple-list-draggable

call it when mouse is down on list then you can get position index when mouse up

$('#list li').on('mousedown', function(e) {
    $('#list').simpleDraggable(function(index) {
        console.log(index)
    })
})

License

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i simple-list-draggable

      Weekly Downloads

      0

      Version

      0.0.5

      License

      MIT

      Last publish

      Collaborators

      • oxyflour