How to specify column alignment?
See original GitHub issueI 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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:6 (2 by maintainers)
Up
Up