Lightning Web Component SALESFORCE

Lightning-Datatable Using Lightning Web Component (LWC)

Lightning-DataTable Using Lightning Web Component A lightning-datatable component displays tabular data where each column can be displayed based on the data type.           Syntax for Lightning DataTable in Lightning Web Component <template> <lightning-datatable data={data} columns={columns} key-field=”id” onrowselection={getSelectedName}> </lightning-datatable>…

Read More

How to Add Hyperlink in lightning:datatable

How to Add Hyperlink in lightning:datatable Below are the Sample Code to add hyperlink in Lightning DataTable:- {label:’Website’, fieldName:’Website’, type: ‘url’, typeAttributes: { label: ‘My Website Name’, target:’_blank’}} Apex Class:- public class AccountController { @AuraEnabled public static List<Account> getAccounts(){ List<Account> acList…

Read More