EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: ClSoft on January 05, 2013, 10:55:21 AM



Title: TreeGrid icon for each node
Post by: ClSoft on January 05, 2013, 10:55:21 AM
Hi all
is it possible to define different icons for each node (in the TreeGrid)?
Thanks.


Title: Re: TreeGrid icon for each node
Post by: patana on January 05, 2013, 12:27:40 PM
  • id: An identity value bind to the node.
  • text: Text to be showed.
  • iconCls: The css class to display icon.
  • checked: Whether the node is checked.
  • state: The node state, 'open' or 'closed'.
  • attributes: Custom attributes bind to the node.
  • target: Target DOM object.

Code:
<style>
   cssclass: background:url('test.png') no-repeat center center;
   cssclass1: background:url('test1.png') no-repeat center center;
</style>
Hope it will help you :)


Title: Re: TreeGrid icon for each node
Post by: ClSoft on January 06, 2013, 02:14:40 AM
it works perfect,  ;D  thanks.