beforeUnSelect
fires before unselecting a cell
beforeUnSelect: (row: object, col: object) => boolean | void;
Parameters:
row: object
- the config of a rowcol: object
- the config of a column
Returns:
Return false
to prevent unselecting of a cell; otherwise, true
.
Example
treegrid.selection.events.on("beforeUnSelect", function(row, col){
console.log("beforeUnSelect", row, col);
return false;
});
It is also possible to use the simplified version of the event:
treegrid.events.on("BeforeUnSelect", function(row, col){
console.log("beforeUnSelect", row, col);
return false;
});
Change log:
added in v7.0