drag-drop-native
Version:
Native drag'n'drop plugin for tom-select
23 lines (16 loc) • 393 B
Markdown
'n'drop plugin for tom-select
```javascript
import Select from 'tom-select';
import dragdrop from 'drag-drop-native';
// Import plugin
Select.define('drag_drop', dragdrop);
// Find the <select>
const dom = document.querySelector('select#my-select');
// Setup the select
const select = new Select(dom, {
plugins: ['drag_drop'],
...
});
```
Native drag