Skip to content

Instantly share code, notes, and snippets.

@liuxiachanghong
Created January 31, 2021 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liuxiachanghong/705799f378c180a664cd70d52a13b58f to your computer and use it in GitHub Desktop.
Save liuxiachanghong/705799f378c180a664cd70d52a13b58f to your computer and use it in GitHub Desktop.
<aura:component>
<aura:handler event="c:AccountsLoaded" action="{!c.onAccountsLoaded}"/>
<lightning:navigation aura:id="navigation"/>
<aura:attribute name="rows" type="Map[]"/>
<aura:attribute name="cols" type="Map[]"/>
<aura:attribute name="iconName" type="String"/>
<aura:attribute name="listName" type="String"/>
<lightning:card title="{!v.listName}" iconName="{!v.iconName}">
<lightning:datatable
data="{!v.rows}"
columns="{!v.cols}"
keyField="Id"
hideCheckboxColumn="true"
showRowNumberColumn="true"
onrowaction="{!c.onRowAction}"
/>
</lightning:card>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment