Icon size

This is probably a simple question, but I would like to change the icon size for each row in the tree. Can this be done on the javascript side so the style-sheet isn’t disturbed. Both the icon and the tree images (lines/plus/minus) have the same class. I don’t want this to have any effect on that.

Thanks!

toddaa

You can use setIconSize() method
docs.dhtmlx.com/doku.php?id=dhtm … eticonsize

This method is available in PRO version only.

Thanks!

Since I require changing the icon size globally isn’t there a simple CSS directive that I could add/change?

I am currently using the Free version, but I have every intention of purchasing the Enterprise version if I can get the look/functionality I require. Is the setIconSize() really the only way to do this?

Sizes for all icons you may redefine by “def_img_x” and “def_img_y” private properties:

tree=new dhtmlXTreeObject(…);
tree.def_img_x=“25px”;
tree.def_img_y=“25px”;

Beautiful!!! Thank you very much!!