Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to have nested tables while using ModularTable #991

Open
moisesbenzan opened this issue Oct 25, 2023 · 1 comment
Open

Ability to have nested tables while using ModularTable #991

moisesbenzan opened this issue Oct 25, 2023 · 1 comment

Comments

@moisesbenzan
Copy link
Contributor

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!

@huwshimi
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants