Skip to content

Wave Table with collapsed rows #1957

Answered by mturoci
n-srinidhi asked this question in Q&A
Discussion options

You must be logged in to vote

I want to display both User ID plus the Value in place of assigned to bob.

I see. In that case, your best option is to compute the total value yourself and make it part of the title. Something like

total_val = 10
ui.table_group(f"Assigned to Bob {total_val}", [
    ui.table_row(name='row1', cells=['Task1', 'Moderate']),
    ui.table_row(name='row2', cells=['Task2', 'High'])
], collapsed=False),

Wave doesn't do this automatically since it may not suit everyone.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@n-srinidhi
Comment options

@mturoci
Comment options

Answer selected by n-srinidhi
@n-srinidhi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants