Skip to content

Instantly share code, notes, and snippets.

@karanrajs
Created May 13, 2016 04:16
Show Gist options
  • Save karanrajs/3e50b2d53237e4c4569c8b537ca372b7 to your computer and use it in GitHub Desktop.
Save karanrajs/3e50b2d53237e4c4569c8b537ca372b7 to your computer and use it in GitHub Desktop.
<aura:component >
<aura:attribute name="page" type="integer"/>
<aura:attribute name="pages" type="integer"/>
<aura:attribute name="total" type="integer"/>
<ltng:require styles="/resource/SLDS080/assets/styles/salesforce-lightning-design-system-vf.css" />
<div class="slds">
<div class="slds-form-element">
<button class="slds-button slds-button--brand" onclick="{!c.previousPage}" disabled="{!v.page &lt;= 1}">
Previous
</button>
&nbsp;{!v.total} records • page {!v.page} / {!v.pages} &nbsp;
<button class="slds-button slds-button--brand" onclick="{!c.nextPage}" disabled="{!v.page >= v.pages}"> Next</button>
</div>
</div>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment