EasyUI Forum
September 14, 2025, 07:11:42 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: TreeGrid icon for each node  (Read 11756 times)
ClSoft
Jr. Member
**
Posts: 92


View Profile
« on: January 05, 2013, 10:55:21 AM »

Hi all
is it possible to define different icons for each node (in the TreeGrid)?
Thanks.
Logged
patana
Jr. Member
**
Posts: 50


View Profile
« Reply #1 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 Smiley
Logged
ClSoft
Jr. Member
**
Posts: 92


View Profile
« Reply #2 on: January 06, 2013, 02:14:40 AM »

it works perfect,  Grin  thanks.
« Last Edit: January 06, 2013, 12:47:43 PM by Clarion » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!