fires before an item is selected, cancelable
id | string | id of the item to select |
lastId | string | id of the previously selected item, if any |
boolean | true|false to allow/cancel selection |
mySidebar.attachEvent("onBeforeSelect", function(id, lastId){
// your code here
return true;
});
return true|false to allow/cancel selection
Back to top