DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
API Methods

### setItemImage(itemId, img, imgDis)

Required library edition:
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);