I'm trying to implement the lazy loading to the aura component and Accounts record maybe 10 or 100 or 500 and I do not have the ability to play with soql since this component sits as a child and the Account List is being passed.
Any pointers how should I do? so when the component loads I want to show only 50 records and as the user scroll down then load the another 50 from the accounts
list
Here is the child component looks like.
<aura:component >
<aura:attribute name="accounts" type="List"/>
<!--Component Start-->
<div class="slds-m-around_xx-large">
<table class="slds-table">
<thead>
<tr>
<th data-record="Name"></th>
<th data-record="AccountNumber"></th>
<th data-record="Industry"></th>
<th data-record="Phone"></th>
</tr>
</thead>
<tbody>
<aura:iteration items="{!v.accounts}" var="acc">
<tr class="slds-hint-parent">
<th data-label="Name"> {!acc.Name} </th>
<td data-label="Account Number"> {!acc.AccountNumber </td>
<td data-label="Industry">{!acc.Industry} </td>
<td data-label="Phone">{!acc.Phone} </td>
</tr>
</aura:iteration>
</tbody>
</table>
</div>
<!--Component End-->
</aura:component>
slice
method should use that for lazy loading?