Skip to main content

Simple

The simplest possible use-case. Is to choose which elements can be selected:

new DragSelect({
selectables: document.getElementsByClassName('selectable-nodes')
});

That’s it. Check it out: