DHTMLX Docs & Samples Explorer

setItemState(itemId, state)

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

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

  • itemId - id of a two-state item
  • state - state, true for pressed, false for released
    toolbar.setItemState(itemId, state); // state = true/false