Collapse for table row
huseyn opened this issue · 3 comments
huseyn commented
Collapse for table row
nkbt commented
It is not really possible to set hight of TR. Use divs/css-grid instead.
huseyn commented
I solved the problem for custom generic table by writing like this:
<tr>
<td colSpan='4'>
<UnmountClosed isOpened={isCollapse}>
<table>
<tbody>
{collapseData.map((row, i) => {
return (
<tr className='cursor-pointer' key={i}>
{collapseColumns && collapseColumns.map(column => {
return <td key={column.objectKey + i}>{row[column.objectKey]}</td>
})}
</tr>
)
})}
</tbody>
</table>
</UnmountClosed>
</td>
</tr>
nkbt commented
Glad it worked out for you 👍