How to change column title datagrid?

652 views Asked by At

How to change column title datagrid ?

I need to change the caption of the columns, but I'm not getting.

The Code:

<List title="Todos Usuários" {...props}>
    <Datagrid>
        <TextField title="Codigo" --> not worked source="id" />
        <TextField source="name" />
        <EmailField source="email" />
    </Datagrid>
</List>
1

There are 1 answers

0
MaxAlex On

Use label instead of title, but it is correct to use translation files to automatically get the required field labels: "Translating Resource and Field Names": https://marmelab.com/react-admin/Translation.html