Check documentation for the latest version of dhtmlxSuite onSelect DHTMLX Docs

onSelect

fires when an item is selected

void onSelect(string|number id,string|number lastId);
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