DHTMLX Docs & Samples Explorer

setItemImage(itemId, img, imgDis)

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

sets an image for the item

  • itemId - the item's id
  • img - the image for the enabled item (empty string for none)
  • imgDis - the image for the disabled item (empty string for none)
    menu.setItemImage(itemId, img, imgDis);