toggle


Type: Boolean|String
Default: false

Allows toggling of the item state.


When set to true, clicking or tapping an item will toggle it's state instead of marking all currently selected items for deselection.

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

Demo