Salesforce Fact #646 | Reset draftValues in lightning datatable
In datatable there is a property named 'draftValues' which keeps a track of inline edits made. Now if we have a scenario, where we need revert the inline edits made so far, we can set the draftValues to empty array using bit of logic in JS.
Attached are the screenshots.
Comments
Post a Comment