Check documentation for the latest version of dhtmlxSuite getItemState DHTMLX Docs


returns the current state of a buttonTwoState or a buttonSegmented

boolean getItemState(string|number itemId,string|number segmId);
itemIdstring|numberthe id of a buttonTwoState to check
segmIdstring|numberthe id of a buttonSegmented segment to check
booleantrue - the button/segment is enabled, false - disabled


var isPressed = myRibbon.getItemState(itemId, segmId);

Change log

added in version 4.2

Back to top