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

revskill10 picture revskill10  路  3Comments

KKrisu picture KKrisu  路  3Comments

slevy85 picture slevy85  路  3Comments

behrouz-s picture behrouz-s  路  3Comments

Likurg2010 picture Likurg2010  路  3Comments