Material-table: Change row edit delete text

Created on 25 Jun 2019  路  3Comments  路  Source: mbrn/material-table

Is it possible to change the text that appears when deleting a row. I want different text than the default "Are you sure delete this row?"

Most helpful comment

You can modify it in the localization props. For example
localization={{ body: { editRow: { deleteText: 'Customized Delete Message' } } }}
Check the documentation for more localization props.

https://material-table.com/#/docs/all-props

All 3 comments

You can modify it in the localization props. For example
localization={{ body: { editRow: { deleteText: 'Customized Delete Message' } } }}
Check the documentation for more localization props.

https://material-table.com/#/docs/all-props

Works like a charm. Thank you!

Can we have this custom message with the row data I want to delete?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

slevy85 picture slevy85  路  3Comments

victorwvieira picture victorwvieira  路  3Comments

timrchavez picture timrchavez  路  3Comments

revskill10 picture revskill10  路  3Comments

lazeebee picture lazeebee  路  3Comments