el-draggable

1.0.6 • Public • Published

$ npm install el-draggable

const box1 = document.getElementById('box-1')
new ElDraggable(box1, {
    overflow: false,
    containment: containment,
    handler: 'span',
    throttle: 30,
    onStart () {
        box1.style.zIndex = 999
    },
    onDrag (e, position) {
        // TODO
    },
    onEnd () {
        box1.style.zIndex = 'auto'
    }
});

Readme

Keywords

Package Sidebar

Install

npm i el-draggable

Weekly Downloads

0

Version

1.0.6

License

MIT

Last publish

Collaborators

  • joe223