How to create a tree menu with hyperlinks using HierarchyColumnComponentRenderer

How to create a tree menu with hyperlinks in treegrid using HierarchyColumnComponentRenderer? Can someone give me a code example? Thank you

Are you intending to use TreeGrid as a hierarchical Menu component in your application? I just want to point that SideNav is more appropriate component for that purpose.

For hyperlinks you can naturally use Anchor (external links) or RouterLink (preferred for application’s internal navigation) components.

The Tree Grid | Components | Vaadin Docs “Rich content” example in the TreeGrid docs shows you how to use the addComponentHierarchyColumn method to add any custom component in the hierarchy column; in the example’s case, it’s a HorizontalLayout that contains some other components but you could use anything in there.