onBeforeSelect

fires before a cell is selected

boolean onBeforeSelect(object selection,boolean preserve);
selectionobjectthe selected object
preservebooleanindicates whether the previous selection will be saved
booleanreturning `false` will prevent item selection

Example

some.attachEvent("onBeforeSelect", function (selection, preserve){
    // ... some code here ...
    // return false to block operation
    return true;
});

Details

The selection object depends on the selection mode and includes the following attributes:

  • row - the id of the row with selection
  • column - the id of the column with selection
  • id - the id of the selected item (row, column, or cell, depending on the applied selection mode)
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript component library and page of javascript tree table product.