Check documentation for the latest version 6.0 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){ ... };

Parameters

idstring|numberid of an item
statebooleannew state of an item

Example

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

Back to top