DHTMLX Docs & Samples Explorer

addButton(id, pos, text, imgEnabled, imgDisabled)

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

adds a button to webbar

  • id - id of a button
  • pos - position of a button
  • text - text for a button (null for no text)
  • imgEnabled - image for enabled state (null for no image)
  • imgDisabled - image for desabled state (null for no image)
    toolbar.addButton(id, pos, text, imgEnabled, imgDisabled);