Dev: lightning:datatable inline editing in Salesforce




In this post, we will see how to use the data table inline to edit the cells. you can make data table columns as editable bypassing editable to true at the column level. 
When you make a column editable, a pencil icon appears when you hover over the cells in that column. Clicking the icon or pressing the Enter key triggers inline editing. Inline editing is not supported for date and location fields. 

The datatable supports mass inline editing, so you can edit content in multiple table cells and save the changes in one step. The component verifies that you want to update multiple items before it applies your changes. Make a column editable by setting editable to true when you are defining your columns in the controller.

Apex Controller


Aura Component


Aura Component Controller


Aura Component Helper



Please comment for more tutorial topics.
Thanks.
Keep reading.
Next Post Previous Post
No Comment
Add Comment
comment url