onBeforeUnSelect

fires before unselection of an item has started

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

Example

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

See also
Back to top