Description
A follow-up task for https://zube.io/x-team/xp-formerly-auto/c/1956
To facilitate the functionality development, we'll need a generic inline-edit component that will support onSave
and onCancel
custom callbacks to do respectively saving data and reverting it to the previous version. We should keep in mind it might be used for different unrelated fields on the admin dashboard, so it should be a generic one. Also, it would be great to support saving by clicking Enter
and canceling edit mode by clicking Esc
.
On one of the last projects I implemented a similar component and would like to share a recording of how it works:
It was implemented the way it replicates Trello's similar component, but for our purposes, we can simplify that. I can share the code if required 😄
@mccrodp Do we want to have similar Save
/Cancel
button when in edit mode? Or what are your expectations of in-edit
mode?