Material-table: Add ability to delete rows

Created on 9 Feb 2019  路  6Comments  路  Source: mbrn/material-table

Is your feature request related to a problem? Please describe.
There should be the ability to easily delete rows from an action since this is a common use case with selection

Describe the solution you'd like
After selecting rows, have an option to delete the rows via an action.

Most helpful comment

I am working on editable features:

image

All 6 comments

Why you don't delete selected rows from your state that you set as data to material-table?

i currently am doing that but it seems inefficient to use a filter on my state array

have same problem, how can i access state\props of my react app. the only parameters are event and row...

Why not simply add a delete action and remove the item on click?
actions={[ { icon: () => <Delete color='action' />, onClick: this.archiveOrder, tooltip: localizedStrings.deleteOrder, } ]}

I am working on editable features:

image

You can delete rows with editable feature. You will provide a onRowDelete function to delete rows.

https://mbrn.github.io/material-table/#/docz-examples-15-example-editable

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behrouz-s picture behrouz-s  路  3Comments

slevy85 picture slevy85  路  3Comments

terapepo picture terapepo  路  3Comments

diegosps picture diegosps  路  3Comments

jlgreene2 picture jlgreene2  路  3Comments