Check documentation for the latest version 6.0 of dhtmlxSuite setItemState DHTMLX Docs

setItemState

sets the pressed/released state for a two-state button

void setItemState(string|number itemId,boolean state);

Parameters

itemIdstring|numberid of a two-state item
statebooleanstate, true for pressed, false for released

Example

myToolbar.setItemState(itemId, state);

See also
Back to top