I am trying to disable the toggle icons on my TreeGrid. It seems that I can not access this part of the shadow DOM from the “vaadin-grid” parent. Here is how my html file looks like:
I can access the “vaadin-grid-cell-content” just fine. But trying the same with “vaadin-grid-tree-toggle” just does not work. Creating a new html file with theme-for=“vaadin-grid-tree-toggle” works, but it’s not my preferred solution, since I just want to disable the icon when the grid has the classname “portal-menu”.
According to it you should create theme module, theme-for=“vaadin-grid-tree-toggle”, as you have apparently tried and there use part name “toggle”. So it becomes something like
thank you for the response. Unfortunately, this solution does not work, because there is no “vaadin-grid-tree-toggle” element with the class name “portal-menu”. I have defined this class name in the grid (grid.addClassName(“portal-menu”)). This option does not set the class name for it’s children web components.
I need either an option to set the class name of the “vaadin-grid-tree-toggle” element so that it fits the grid’s class name or access this component from within the “style” brackets of the “vaadin-grid” styling.