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

How to specify column alignment?

Open mviens opened this issue 7 years ago • 6 comments

I do not see how to specify the MuiTableCell-alignCenter or MuiTableCell-alignRight values. All of the cells are being applied with MuiTableCell-alignLeft. As a terrible work-around, I am having to apply hacky CSS styles to override the left alignment.

In general, it seems the properties supported by MuiTable are not available to use for MaterialTable, unless I am misunderstanding something. I would appreciate any assistance. Thanks.

This is the SandBox I have been working with, which was forked from the main one listed on the Material-UI website: https://codesandbox.io/s/material-demo-s0x7t

Ultimately, I want the first table to have columns that are centered, except the first column. For the second table, I want only the last column to be centered.

mviens avatar Jun 19 '19 02:06 mviens

Hi @mviens

I will check this asap.

mbrn avatar Jul 02 '19 07:07 mbrn

When can we expect the fix?

kl1mm avatar Jul 11 '19 06:07 kl1mm

When can we expect the fix?

Hi @kl1mm ,

I will return back to material-table in 2 weeks. And i won't take more freelance jobs until resolve most of issues :). Thanks for your patience and support.

mbrn avatar Jul 11 '19 07:07 mbrn

Thanks for the reply.

kl1mm avatar Jul 11 '19 07:07 kl1mm

Up

chitgoks avatar Nov 05 '19 06:11 chitgoks

Up

Dobata7 avatar Mar 17 '20 14:03 Dobata7