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

getItemState

returns the current state of a two-state button

boolean getItemState(string|number itemId);

Parameters

itemIdstring|numberthe id of a two-state item to check

Returns

booleantrue - the button is pressed, false - released

Example

var isPressed = myToolbar.getItemState(itemId);

See also
Back to top