I'm attempting to implement expandable Table Rows in a Table that can be activated by clicking on them individually.
For instance, upon clicking on the designated area in the provided image below, a Segment or Container will reveal itself with embedded content.
https://i.sstatic.net/J8h3J.png
I've experimented with a solution mentioned in this discussion, but the main issue is that any element beneath a Table Row/Cell is constrained by the boundaries of the Table HeaderCell. Thus, if I attempt to have a Table Row with a Segment below it, the outcome appears like this:
https://i.sstatic.net/rjej1.png
As illustrated, the Segment is located within the new Row but is limited by the size of the HeaderCell.
This approach also triggers the following error:
validateDOMNesting(...): <div> cannot appear as a child of <tr>.
in div (created by Segment)
It seems that placing a Segment under a Table Row violates the acceptable element structure.
Any suggestions on how the element structure should be arranged to create a distinct area beneath a Table Row?