Open awkward-minion opened 11 months ago
We don't support this at the moment. Seems like a reasonable request, though may be difficult to implement due to the information needed in the columns as well as in the rows. We'll need to discuss API for it.
Thank you for quick response. Thank you @snowystinger ๐
Support for this is pretty crucial for us @lightspeed ๐ We may be able to assist if necessary!
That'd be great. We took a look at this today and noticed the description on the issue logged against us is different than the description in the linked issue on NextUI. Before starting, we'd like clarification about what is actually needed. Is it a cell that spans multiple columns or a column which spans multiple cells?
<td colspan...
vs
<th colspan...
We hope that it's the cell spanning multiple columns as the other one is more complicated we believe.
Things that will need some extra consideration while implementing:
Thankfully we are looking for a cell that spans multiple columns. <td colspan...
. We use this in conjunction with Expandable rows. We are using the entire react-aria suite for our new design system are now onto useTable for our table needs.
Here is a crude example in paint
I managed to hack expandable rows together with #4758 as a guideline using UNSTABLE_useTreeGridState
and looking at spectrum's TableViewWrapper
. It doesn't play well with selecting rows, but that is expected of an undocumented alpha api ๐
Great, I think we can start by creating this with a colspan prop on Cell
s. Would you like to get this started?
I am also curious about this. Are there any workarounds I could apply to create expandable rows as @kysley suggested?
Any news on this?
Provide a general summary of the issue here
Unable to make cell span over multiple columns headers
๐ค Expected Behavior?
Must pass the column length and cell count validation here, and render the table
๐ฏ Current Behavior
Due to strict cell count (excluding colSpan) and column headers count, it is throwing an error
๐ Possible Solution
Include colSpan count while comparing with column headers vice-versa
๐ฆ Context
I have a requirement, where the UI needs to merge two columns into one in header, while maintaing two individula cells under same column header.
Plain HTML Example my usecase:
It seems to be achievable at this stage.
๐ฅ๏ธ Steps to Reproduce
TODO
Version
@react-aria/table@3.13.1
What browsers are you seeing the problem on?
Firefox, Chrome
If other, please specify.
No response
What operating system are you using?
OSx
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response