I would like to get rid of the icons in an extjs tree. Instead i would like to set all the nodes that have children in bold.
I would like to get rid of the icons in an extjs tree. Instead i would like to set all the nodes that have children in bold.
Below my solution with ExtJS 6.5 that brings 2 advantages:
I define in the Model a calculated iconCls returning a custom css class:
{
name: 'iconCls',
calculate: function (data) {
return 'uw-shrink-icon';
}
}
Then in the sass file I take advantage of the native x-tree-icon-custom css class to set the width to 0:
.x-tree-icon-custom.uw-shrink-icon {
background-image: none;
width:0px;
}