How can I remove folder icons from TreeTable

Hi,

in 1.8 folder and leaf icons were added by default to every node in the treetable.
How can I disable it?

Thank you,
Alexander

You can change the template
http://webix.com/snippet/21b8e870

It is not intuitive that I need to set common.icon() as template in order to get rid of icons.
I would argue other way around set common.treetable() for no icon.

Where I can read about possible templates i.e. common.xxxx?

Hi,

Default tree and treetable template includes:

  • “open/close” ("+/-" ) icon defined by common.icon()
  • and “folder/leaf” icon defined by common.folder().

So does common.treetable() template.

Setting common.icon() as template means that you leave only an “open/close” icon.

Possible node templates are described here: http://docs.webix.com/datatree__node_templates.html#predefinedtemplates

As in maksim’s snippet, common.icon() does the trick but it also removes the indent which appears for a nested component which has another level beneath. Which is obviously very confusing to the eye.

There is a common.space() element that can be used in template and will add level based padding

http://webix.com/snippet/74af49b9