Problem icon and folder in treeTable

I find this example with folder : http://webix.com/snippet/c099c8a3

So I want the same thing but I want to use the icon definition and it doesn’t work : http://webix.com/snippet/807ca416

Any ideas ?

Thanks

Hi,

The problem is a custom icon should possess .webix_tree_open and .webix_tree_close css classes to enable closing and opening of the nodes, so you need to include them in the custom type:

<span class='webix_tree_open webix_icon fa-angle-down'></span>

And since Air skin uses image background for these classes by default, you have to remove it.

See the resulting snippet: http://webix.com/snippet/57304617

In Flat skin it can be achieved easier: http://webix.com/snippet/8cb3a659

Thanks for the response :slight_smile: