Cell Editing
Cell editing can be achieved by creating custom cell renderers.
In this demo we create a custom cell component which:
- Renders a read-only cell
- Listens to double click
- On click, renders an edit cell
- As the user types the edit state is kept internal to the cell. If the user presses enter it is commited via
onCommit
which updates the data. If the user presses Escape the changes are cancelled. - The cell then returns the read-only mode