DHTMLX Docs & Samples Explorer

getItemState(itemId)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxtoolbar.js

returns current state of a two-state button

  • itemId - id of a two-state item to check
    var isPressed = toolbar.getItemState(itemId); // returns true/false