2

Here's what current MUI Datagrid Export Label look likes.

enter image description here

I want to be able to change the label Download as CSV to something like Export to CSV etc

I've searched the Docs and issues on the github repo, i was unable to find how to progmatically change that label

Olivier Tassinari
  • 8,238
  • 4
  • 23
  • 23
jsdev
  • 672
  • 6
  • 14

1 Answers1

3

Looking at the source code there is not really a prop to change the text value.

I did however find a way to change it using localeText

<DataGrid
  localeText={{
    toolbarExportCSV: "Export to CSV",
  }}
  ...
  slots={{
    toolbar: CustomToolbar,
  }}
/>

All other options can be found here on github

RubenSmn
  • 4,091
  • 2
  • 5
  • 24
  • Thank you for pointing it out, ```localeText={{ toolbarExportCSV: "Export to CSV" }}``` does the trick – jsdev Mar 14 '23 at 11:03