eui icon indicating copy to clipboard operation
eui copied to clipboard

[EuiTreeView] Allow to expand all nodes

Open balthild opened this issue 3 years ago • 4 comments

image

I want to create an non-interactable tree view to show hierarchical data. But this is seems to be impossible now because the expanded nodes is an internal state of the tree view component.

balthild avatar Jan 29 '22 04:01 balthild

@thompsongl Using the expandByDefault prop can solve this problem right!?

hetanthakkar avatar Feb 08 '22 06:02 hetanthakkar

@hetanthakkar1 expandByDefault expands the nodes on first rendering, but then the users could collapse them again. I want to prevent users from collapsing the tree.

balthild avatar Feb 08 '22 06:02 balthild

Hey @balthild , it sounds like you just want a static nested list. I suggest using nested <ol> or <ul> with custom bullet indicators. EuiTreeView comes with a lot of cruft that it doesn't sound like your implementation needs. It'll also most likely be the best for you semantically.

cchaos avatar Feb 08 '22 19:02 cchaos

👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

github-actions[bot] avatar Aug 08 '22 00:08 github-actions[bot]

A solution has been provided. We have no plans to support blocking interactivity on EuiTreeView.

daveyholler avatar Jan 09 '23 18:01 daveyholler