Home > Back-end >  Is there a way to change the toolbar button name in DataGrid?
Is there a way to change the toolbar button name in DataGrid?

Time:10-08

I have made a custom toolbar

function CustomToolbar() {
  return (
    <GridToolbarContainer>
      <GridToolbarColumnsButton />
      <GridToolbarFilterButton />
      <GridToolbarDensitySelector />
      <GridToolbarExport />
    </GridToolbarContainer>
  )
}

But I'd like to change the names when displayed, not to be Columns, Filters, Density, Export, is there any solution?

CodePudding user response:

You can change the localeText prop of DataGrid/DataGridPro, see all the translation keys and its default values Codesandbox Demo

  • Related