-
Notifications
You must be signed in to change notification settings - Fork 21
toggle
Karl edited this page Nov 12, 2017
·
6 revisions
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"
});