lightning:listView Example

Sample Code:

<aura:component implements="force:appHostable" >

    <lightning:listView aura:id="listViewAccounts"
                        objectApiName="Account"
                        listName="AllAccounts"
                        rows="5" 
                        showActionBar="false" 
                        enableInlineEdit="true"
                        showRowLevelActions="false" />
    

</aura:component>

Output:


4 comments:

  1. Hi-any chance you could provide all the code (component, controller, etc.) needed to implement this in my org? This looks really useful. Thanks!

    ReplyDelete
    Replies
    1. I didn't develop controller and helper for the above example.

      Delete
  2. Hi Magulan, If I want to display multiple List Views. How to achieve this?

    Thanks,

    ReplyDelete
    Replies
    1. There is no standard tag for this. You have to use https://developer.salesforce.com/docs/component-library/bundle/lightning:select/example and display data based on the selection.

      Delete