Skip to main content

Posts

Showing posts from July, 2018

Account Search Lightning Component using lightning:datatable and KeyUp event Salesforce

In this post we will see how can we use the out-of-the-box lightning data table to show the account search result. This can be used in many place since search is a very common requirement. AccountSearch.cmp <aura:component controller="AccountSearchController" implements="force:appHostable,lightning:actionOverride,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction,lightning:isUrlAddressable" access="global"> <aura:attribute name="data" type="Object"/>     <aura:attribute name="columns" type="List"/>     <aura:attribute name="selectedRows" type="List" />     <aura:attribute name="maxRowSelection" type="Integer" default="1"/>      <aura:attribute name="selectedRowsList" type="List" />     ...