Edit Row
Explanation #
This example shows how to implement editable rows. First let’s look at the row prior to editing:
This will trigger a whole table replacement as we are going to remove the edit buttons from other rows as well as change out the inputs to allow editing.
Finally, here is what the row looks like when the data is being edited:
Here we have a few things going on, clicking the cancel button will bring back the read-only version of the row. Finally, there is a save button that issues a PATCH
to update the contact.