material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Table colSpan support

Open Jim25 opened this issue 7 years ago • 7 comments

Hi,

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

Thanks in advance.

Jim25 avatar Mar 24 '19 10:03 Jim25

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

mbrn avatar Mar 24 '19 10:03 mbrn

Thank you mbrn!

I will give it a try.

Jim25 avatar Mar 24 '19 11:03 Jim25

can you share how you controlled in details?

thegrucoder avatar Sep 05 '19 10:09 thegrucoder

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

unnikrishna avatar Oct 16 '19 07:10 unnikrishna

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

pixelass avatar Dec 03 '19 08:12 pixelass

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

dandv avatar Jan 17 '20 05:01 dandv

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

nguyenhaduchieu avatar Dec 29 '20 10:12 nguyenhaduchieu