Check documentation for the latest version 6.0 of dhtmlxSuite setItemImage DHTMLX Docs

setItemImage

sets an image for an item

void setItemImage(string|number itemId,string img,string imgDis);

Parameters

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