Request for More Detailed Example of TreeGrid Usage in Hilla Documentation

Hi Vaadin community,

I’ve been exploring the usage of the TreeGrid component in Hilla and referred to the official documentation for guidance. While the example provided is helpful, I find it lacks sufficient detail, particularly regarding the DataService.java and Person.java classes that would complete the demonstration.

Would it be possible for someone to share a more comprehensive example or expand on the existing documentation? Specifically, I am interested in how the backend data service (DataService.java) and the data model (Person.java) should be structured to fully support the TreeGrid.

Any code samples or pointers would be greatly appreciated!

Thank you in advance for your help.

Best regards,
Ghazi

Hi, you’re right, those files should be included in the code snippets below the sample.

Luckily, since our documentation source code is open source, it’s available via github:

I created a ticket about adding those to the code boxes on the page: TreeGrid React+Lit code samples: Include related code files in samples · Issue #3912 · vaadin/docs · GitHub

1 Like