Check documentation for the latest version of dhtmlxSuite setItemImage DHTMLX Docs

setItemImage

sets an image for an item

void setItemImage(string|number itemId,string img,string imgDis);
itemIdstring|numberthe item's id
imgstringthe image for the enabled item (empty string for none)
imgDisstringthe image for the disabled item (empty string for none)

Example

myMenu.setItemImage(itemId, img, imgDis);

Back to top