Reputation: 603
Is there a way to split a row into multiple rows as given in the image for a single column key.
Upvotes: 1
Views: 1696
Reputation: 5410
You can write like this:
<Row>
{index === 0 ? (
<Cell
rowSpan={rows.length}
style={{ padding: '8px' }}>
B
</Cell>
) : null}
<Cell
style={{ padding: '8px' }}>
{row.cells[1].render('Cell')}
</Cell>
<Cell
style={{ padding: '8px' }}>
{row.cells[2].render('Cell')}
</Cell>
<Cell
style={{ padding: '8px' }}>
{row.cells[3].render('Cell')}
</Cell>
</Row>
Rowspan attribute specifies the number of rows a cell should span. And there you can find my code.
Upvotes: 1