EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Pierre on January 15, 2016, 08:28:44 AM



Title: [SOLVED] Change icon on Tree
Post by: Pierre on January 15, 2016, 08:28:44 AM
Hello
I need to change default Icons when using Tree from Markup, something like:
http://www.jeasyui.com/tutorial/tree/tree1.php

How to define Icons for each node when creating Tree from HTML code?
Thank you.


Title: Re: Change icon on Tree
Post by: stworthy on January 15, 2016, 08:53:39 AM
Please set the 'iconCls' property in the <li> element.
Code:
<li data-options="state:'closed',iconCls:'icon-ok'">
...
</li>


Title: [SOLVED] Re: Change icon on Tree
Post by: Pierre on January 15, 2016, 12:29:51 PM
Please set the 'iconCls' property in the <li> element.
Code:
<li data-options="state:'closed',iconCls:'icon-ok'">
...
</li>

Awesome, thank you.