EasyUI Forum

General Category => General Discussion => Topic started by: alastairwalker on August 08, 2014, 10:15:07 PM



Title: Treegrid: How to suppress the icons display
Post by: alastairwalker on August 08, 2014, 10:15:07 PM
For the application I have in mind I need to suppress the icons that are currently displayed. For example, the Folders (Open, Closed) and the Document icon, need to be suppressed.

I have searched the forum posts and the Documentation, but it is not clear how to do this.

Any advice will be really appreciated!

Alastair Walker


Title: Re: Treegrid: How to suppress the icons display
Post by: tomhj on August 21, 2014, 09:55:29 PM
In my app, I customize the icons to display something more appropriate for my app.  To do this, provide an "iconCls" value for each node/row in your tree.

The iconCls contains the CSS class name that defines the icon like "icon-pdf" and this CSS style:

.icon-pdf { background:url('images/pdf.png') no-repeat; }


Title: Re: Treegrid: How to suppress the icons display
Post by: alastairwalker on August 21, 2014, 11:19:44 PM
That's great! Many thanks for the guidance!

Alastair