Frage

I won't show treegrid icon each node.

I tried using: 1. "iconCls" config, with 'void' value. 2. Using a 'wrong' value.

Finally, I have the same that I expected, 'defaults icons' for all rows.

Someone know any form to delete these icons ?

thanks for all.

War es hilfreich?

Lösung

Just make sure you give an iconCls of, say treenode-no-icon. I do so in my model:

{name: 'iconCls', type: 'string', defaultValue: 'treenode-no-icon'},

Then in your css include:

.treenode-no-icon
{
    display : none !important;
}

Andere Tipps

This was a few years ago, but here is a solution using ExtJS 6 that I discovered.

Using a custom theme, in the theme file associated with Ext.tree.View, I added the line:

$tree-icon-width : 0px;

My treepanel data now displays without any visible icons.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top