beforeUnSelect
fires on unselecting an item, but before the item is really unselected
beforeUnSelect: (id: string | number) => void | boolean;
Parameters:
id: string | number
- the id of an item
Returns:
Return false
to prevent unselecting of an item; otherwise, true
.
Example
component.selection.events.on("beforeUnSelect", function(id) {
console.log(id);
return false;
});