web-components
web-components copied to clipboard
tree picker and tree view
Describe your motivation
some view need display tree data, for example org structure , some view need display tree picker, for example picker person from org structure.
Describe the solution you'd like
tree picker and tree view web component .
Describe alternatives you've considered
No response
Additional context
No response
The Tree component is missing, but it is possible to use single column TreeGrid in many use cases.
There are couple of more fine tuned version of single column TreeGrid based implementations in the Directory, the first one is a generic Tree
https://vaadin.com/directory/component/tree
And specific single and multiselect FileSelect components are found in
https://vaadin.com/directory/component/filesystem-dataprovider-add-on
Here is a codepen illustrating what the TreePicker could look like: https://codepen.io/cliener/pen/gPjWXP
This is the type of “tree” I assumed the request was referring to:

@jouni ,👌 @TatuLund ,thank you!
https://ant.design/components/tree-select/ https://ant.design/components/tree/
The main issue when we are using a TreeGrid for a Tree is the accessibility. The keyboard support is completely different and can't be implemented in the TreeGrid for example.
Yes,the TreeGrid is grid, not tree.