h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 323 forks source link

Recursive groups for Table widget #2114

Open AlexKotik opened 10 months ago

AlexKotik commented 10 months ago

I'd like to ask for a recursive groups in a Table widget, so that we could make it easier to display hierarchical tabular data. Here is an example how it looks in ag-grid javascript library: 253592138-97d13e66-734e-4a50-b3c1-1a7744b8b815

marek-mihok commented 3 months ago

This is not supported by FluentUI DetailsList Wave is using and there is no reasonable workaround.

However there is the new Tree component in FluentUI v9 for this scenario. Hard to say if it's stable. The issue is closed for several months, but in the component mapping in the migration guide there is still a tilde (~) near the component, which "means the v9 component is currently being developed. It may be in preview or not exported from react-components yet".

@mturoci do you think we should be implementing a new tree view component for Wave based on FluentUI V9?

mturoci commented 3 months ago

do you think we should be implementing a new tree view component for Wave based on FluentUI V9?

That would be too much work since the whole table would need to be migrated. Could maybe GroupedList be used instead?

marek-mihok commented 3 months ago

Could maybe GroupedList be used instead?

Unfortunately not. There is also not possible for both rows and groups to be rendered on the same level. The DetailsList is built on top of the GroupedList so that's why the same behavior.