Change the folder icon into treetable

Good day, any pleople maybe know how we can change the folder icon in a treetable? , also if we can change the color of each node by a specific condition.

With tree works, but with treetable shows the message: variable space undefined when we apply a funtion into template property.

You can redefine a template if you want to have a custom look of item, but if you want to have only custom icon - you can redefine how icon is rendered in the next way

http://webix.com/snippet/c099c8a3

To avoid placing such code in each tree on the page, you can define it once, as your own type of tree, and easily reuse across the app

http://webix.com/snippet/72ec6dc0

Each item can have $css property.
You can define it directly in data, or define a rule, which will be applied to each item, and will set css class based on properties of the item.

http://webix.com/snippet/24d7acd3

Also you can use icons from default icon pack as images for the tree

http://webix.com/snippet/d5f4cad2

Thanks, however into treetable downs’t found: please see this: http://webix.com/snippet/1f9a8814

thanks alot,

Yep, named types do not work for treetable and datatable.
We will fix it in the next update.

If you need such functionality ASAP - you can use a bit different approach, it will work for both tree and treetable.

http://webix.com/snippet/1d3c7d64

Thanks, we will implement other solution until you fix, thanks.