Check documentation for the latest version 6.0 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);

Parameters

idstring|numberthe item's id
colorstringcolor (according to CSS rules)

Example

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

See also
Back to top