Add onRowCancel function on editable tables
See original GitHub issueIs your feature request related to a problem? Please describe. I have a custom edit component that is a select dropdown with two options (A, and B)
My current idea is to have a state variable that is currentRowOption
set to ''
initially. In my editComponent, before returning the select component, I set the state variable to the value of the row, if and only if the state variable is equal to ''
. I am able to to set the state variable back to ''
in the onRowUpdate function, but I need to be able to reset it if the editing is cancelled.
Describe the solution you’d like
A function for onRowCancel
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
Editabel Table - On Row Cancel Action | OutSystems
Hello everyone, What about adding an event handler to the onClick of the editable table and then calling a function that adds and...
Read more >Editable | @material-table/core
Helper function. function getNewDataBulkEdit(changes, copyData) {. // key matches the column data id. const keys = Object.keys(changes);.
Read more >material-table Make Row Editable on Click - Stack Overflow
Clicking the row should have the same effect as clicking the edit button on the leftmost side in the actions column. I have...
Read more >Create an app to edit tables in canvas apps - Power Apps
Learn how to configure an app interface with editable tables that allow you to edit data from the data source directly through the...
Read more >DataTable Edit - PrimeFaces Showcase
DataTable Edit. Data displayed on datatable can be edited at row or cell level. SERVER API CLIENT API. Row Editing. Code, Name, Status,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is actually not needed. you can override editable.EditRow property that returns MTableEditRow and override onEditingApproved and onEditingCanceled. this applies to both add, update and delete.