DHTMLX Docs & Samples Explorer

setItemImage(itemId, url)

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

sets an image for an item in enabled state

  • itemId - id of an item
  • url - url of an image
    toolbar.setItemImage(itemId, url);