I'm assuming you've Basic understanding of Lightning Web Component, I'll be explaining you the syntax that will be generic. HTML: < template > <!-- Header Part --> < lightning-card title = "Custom Data table in Lightning Web Components" > < div class = "slds-grid slds-gutters" > < div class = "slds-col" > < span ></ span > </ div > < div class = "slds-col" > < span > <!--A Button For extra feature--> < lightning-button label = "Show Selected Contacts" onclick = {showContacts} style = "margin-left: 40%" variant = "brand" > </ lightning-button > </ span > </ div > </ div >< br />
Everything about Salesforce