The parameters for this method are the following:
id - id of the two-state button;
state - true/false, true stands for the Pressed state of the button, false stands for the Released state of the button;
callEvent - if set to true, calls user defined handler for the onStateChange event (if there is any).
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan