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

setItemImage

sets item's icons (mostly useful for childless nodes)

void setItemImage(string|number id,string im1, [string im2] );

Parameters

idstring|numberid of the node
im1stringicon for a node without children or icon for a closed node (if the "im2" parameter is specified)
im2stringicon for an open node (optional)
Back to top