deselect

Fires when an item is deselected.


The callback has one parameter which returns a reference to the unselected item.

selectable.on("deselect", function(item) {
    // Do something when an item is deselected
});

If you require a list of unselected items instead of listening for when each individual item is unselected then listen for the end event instead as this returns a list of items that were unselected during the current selection.

Last updated