Posts

Showing posts from September, 2020

Lightning Datatable Inline Editing

Image
lightning-datatable component use to display salesforce data in a table format. This component support inline editing. That means we don't need to navigate to the record in order to update the field value. I'll show you how we can use lightning-datatable in our project. Below is the sample output, How our component look like. Output 1: In this output I've updated the Opportunity Name and saved. Output 2: I've applied a check that Opportunity name cannot be more than 150 character. OpportunityList.cmp <aura:component controller = "OpportunityListController" >         <aura:handler name = "init" value = "{!this}" action = "{!c.doInit}" />         <aura:attribute name = "data" type = "Object" />         <aura:attribute name = "columns" type = "List" />         <aura:attribute name = "errors" type = "Object" /...