react-components icon indicating copy to clipboard operation
react-components copied to clipboard

Ability to have nested tables while using ModularTable

Open moisesbenzan opened this issue 1 year ago • 1 comments

It would be great if there was a way to achieve nested tables while using the ModularTable component. One use case that comes to mind is displaying several configuration values under one item, for instance:

testcase1
    bug1 information
    bug 2 information
-----------------------------------------
testcase2
   bug3 information

---------------------------------------
testcase3
--------------------------------------
testcase4

I could provide a rough wire-frame of the UI to achieve.

Thanks in advance!

moisesbenzan avatar Oct 25 '23 18:10 moisesbenzan

Hi @moisesbenzan, ModularTable has an option to provide child rows through the subRows property. There's an example here: https://canonical.github.io/react-components/?path=/docs/modulartable--default-story#subrows.

Will that give you what you need?

huwshimi avatar Oct 29 '23 22:10 huwshimi

Closing this as stale. Feel free to comment or reopen if you still have an issue. Thanks!

bartaz avatar Sep 26 '24 12:09 bartaz