Material-table: Table colSpan support

Created on 24 Mar 2019  路  7Comments  路  Source: mbrn/material-table

Hi,

I want to do colspan in table column. Is there any way to do by this library ?

Thanks in advance.

help wanted

Most helpful comment

Hi @mbrn the above git-hub link is not opening, can you show any code-sandbox example for row-span and col-span

All 7 comments

Hi @Jim25 ,

It does not support for colspans. But as a workaround you can override the Row and Cell component to change their behaviour.

Look at overriding example:
https://mbrn.github.io/material-table/#/docz-examples-10-example-component-overriding

Thank you mbrn!

I will give it a try.

can you share how you controlled in details?

Hi @mbrn the above git-hub link is not opening, can you show any code-sandbox example for row-span and col-span

The page was moved here https://material-table.com/#/docs/features/component-overriding

Maybe I'm missing something, but I don't see an example of colspan at that link?

Solution here, you can insert header components. Example here: https://codesandbox.io/s/sharp-ellis-exyk6

Was this page helpful?
0 / 5 - 0 ratings