Replies: 1 comment
-
|
Here is my latest attempt at this: Obviously, this is pretty convoluted; perhaps future MRT versions might export higher level abstractions than |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The custom row actions example in the docs shows an example of an edit button that triggers the modal editor. This works because the modal editor itself knows how to save the data.
But I want to use custom row actions to trigger an inline row edit. To do that, I need to:
renderRowActions, detect whether the row is currently being edited or not, so I can flip the edit button to a save button; andBasically, I need two methods along the lines of
row.isEditing()andtable.saveRow(row), I think:(Maybe methods like these are available -- I looked but may have missed them.)
So how do I (1) detect that a row is in editing mode, and (2) trigger a save on that row? More generally, how do I use a custom edit button in inline editing mode?
Beta Was this translation helpful? Give feedback.
All reactions