onBeforeSelect

fires before item selection has started

boolean onBeforeSelect(id id,boolean selection);
ididthe id of an item
selectionbooleanreturns the selection status
booleanreturning false will prevent selecting of an item

Example

some.attachEvent("onBeforeSelect", function(id, selection){
  // ... some code here ...
  return true;
});

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript ui framework and page of html treeview product.