Check documentation for the latest version of dhtmlxSuite setIconColor DHTMLX Docs

setIconColor

sets a color for the item's icon, if Font Awesome is used

void setIconColor(string|number id,string color);
idstring|numberthe item's id
colorstringcolor (according to CSS rules)

Example

myTreeView.setIconColor("2", "#abcdef");

See also
Back to top