Check documentation for the latest version of dhtmlxSuite onStateChange DHTMLX Docs

onStateChange

fires when the user changes the state of a two-state button item

void onStateChange(string|number id,boolean state);
idstring|numberid of an item
statebooleannew state of an item

Example

myToolbar.attachEvent("onStateChange", function(id, state){
    //your code here
});

Back to top