DHTMLX Docs & Samples Explorer

setWidth(itemId, width)

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

sets a width for an text/input/buttonSelect item

  • itemId - id of an text/input/buttonSelect item
  • width - new width (px)
    toolbar.setWidth(itemId, width);