onSelect

fires when an item is selected

void onSelect(string|number id,string|number lastId){ ... };

Parameters

idstring|numberid of the selected item
lastIdstring|numberid of the previously active item, if any

Example

mySidebar.attachEvent("onSelect", function(id, lastId){
    // your code here
});

Related samples

Back to top