onBeforeSelect

fires before item selection is started

boolean onBeforeSelect(id id,boolean selection){ ... };

Parameters

ididid of item
selectionbooleantrue if the item was selected, false if it was unselected

Returns

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 web ui framework and page of lists in javascript product.