You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've had multiple instances where we've needed an expanding tree whose items contain more than just a text label. Examples might include a tree with items with two or three button actions, a tooltip, code, etc.
EuiTreeView expands like a tree, but can only accept a string label. EuiListGroup accepts complex items, but cannot expand like a tree.
Proposals
Refactor EuiTreeView to accept a React child. The label would then become the aria-label of the item.
Refactor EuiListGroupItem to accept both a React node label as well as a EuiListGroup child.
Create a new EuiListGroupItem, e.g. EuiListGroupTreeItem, which would accept some new configuration.
I'd prefer Option 2, as it seems the most pragmatic, but I'm open to other ideas and discussion. Thanks!
The text was updated successfully, but these errors were encountered:
Problem
We've had multiple instances where we've needed an expanding tree whose items contain more than just a text label. Examples might include a tree with items with two or three button actions, a tooltip,
code
, etc.EuiTreeView
expands like a tree, but can only accept a string label.EuiListGroup
accepts complex items, but cannot expand like a tree.Proposals
EuiTreeView
to accept a React child. Thelabel
would then become the aria-label of the item.EuiListGroupItem
to accept both a React nodelabel
as well as aEuiListGroup
child.EuiListGroupItem
, e.g.EuiListGroupTreeItem
, which would accept some new configuration.I'd prefer Option 2, as it seems the most pragmatic, but I'm open to other ideas and discussion. Thanks!
The text was updated successfully, but these errors were encountered: