Skip to content
Karl edited this page Nov 12, 2017 · 6 revisions

Type: Boolean

Default: false

Allows toggling of the item state.

Clicking / tapping a selected item will unselect it and vice versa.

const selectable = new Selectable({
    toggle: true
});

With toggle enabled only clicking / tapping will toggle the item state. If you want the state of the item to be toggled during drag select, just set the option to "drag" instead of true.

const selectable = new Selectable({
    toggle: "drag"
});

Clone this wiki locally