Open RaedShihab opened 4 years ago
onRowsDelete | function | Callback function that triggers when row(s) are deleted. function(rowsDeleted: object(lookup: {[dataIndex]: boolean}, data: arrayOfObjects: {index: number, dataIndex: number})) => void OR false (Returning false prevents row deletion.) |
---|
yourData[dataIndex] = realData
I want to make an axios delete request for a bunch of rows in MuiDataTable so I need data like ids from the displayed users (for example).
when I used "onRowsDelete: (rowsDeleted, dataRows)" I got Data and DataIndex, that's cool but not enough and 'dataRows' is undefiend I tried looping inside 'state' and have the advantage of having (index&dataIndex) but I faced some problems. This data table is so useful with me till now so I am sure there is a better way to access the real data, please help me.
Expected Behavior
Current Behavior
Steps to Reproduce (for bugs)
1. 2. 3. 4.
Your Environment