I'm new to React
.
I am creating a table with <dataGrid>
and I only want to center the values of the first column, but I've tried several ways and couldn't manage how to do it:
<ArrayField source="bans" reference="bans" > <Datagrid style=> <BooleanField label="isBanned" source="isBanned" style= /> <ReasonsField source="reason" label="reason" style= /> </Datagrid> </ArrayField>
This doesn't work unluckily.
https://stackoverflow.com/questions/65361649/react-admin-how-do-i-center-a-column-while-using-the-datagrid December 19, 2020 at 01:47AM
没有评论:
发表评论