Multi-part table

I have a long table. I decided to divide it on multiple <tbody> parts. But I noticed it causes many issues.

First I wanted to add possibility to expand/collapse those parts of the table. But apparently <ac:structured-macro> cannot wrap only <tbody> (and thus be inside of a <table>).

Then I tried Table Plus Macro. This would also provide me benefit of controlling which columns sort, showing initial sort and adding auto-numbering. But it seems to be incapable of dealing with multiple <tbody> as well.

I have considered just making separate tables. But then I would not be able to align column widths in all the tables without explicitly setting them. (I don't want to set any particular size as I want them to adapt to content.)

Also since I have multiple <tbody> parts each of them starts with a header-row. The row contains only one column (spanned across entire table) with a header for the following part. And this prevents column sorting in ordinary tables (in fact any spanning seems to do so). And Table Plus Macro seems to be unable to treat such row differently (not sort it, not auto-number it). The first one can be included in heading and thus avoid problems but any others (inside the table) remain.

Any advice how to deal with such tables?

1 answer

I agree, more control for long tables would be nice.

My ideal would be tables with support for multiple <tbody>. Each <tbody> should allow precise control over column widths and make it easy to define where and when to sort and where and when to force or allow page breaks. colspan and rowspan should not interfere with any of that. Page breaks should come with an option for repeated headers plus customisable info text before the break. All table elements (<thead>, <tbody>, <tfoot>, <tr>, <td>) should be easily addressable with CSS and support nth-child(odd)and nth-child(even) for flexible colouring or other adaptions.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,367 views 25 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you