function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ajitava roy 2ajitava roy 2 

Lightning pagination

Hi can anyone provide me sample code how to paginte in lightning components .Suppose if i have to show 10 records of account each time and i have 100 records in total . So how to paginate this in lightning
Best Answer chosen by ajitava roy 2
Fabien TaillonFabien Taillon
You can have a look to this blog post from Christophe Coenraets on Salesforce Developer blog, it includes a pagination element :
https://developer.salesforce.com/blogs/developer-relations/2015/06/creating-simple-real-estate-app-lightning-components.html
 

All Answers

Fabien TaillonFabien Taillon
You can have a look to this blog post from Christophe Coenraets on Salesforce Developer blog, it includes a pagination element :
https://developer.salesforce.com/blogs/developer-relations/2015/06/creating-simple-real-estate-app-lightning-components.html
 
This was selected as the best answer
ajitava roy 2ajitava roy 2
Awesome just what i was looking for server side pagination in lightning. I didn't wanted to use jquery data tables.  Thank you
Fabien TaillonFabien Taillon
Happy to help you ! :)
sfdcMonkey.comsfdcMonkey.com
here is sample example for display records with pagination/pager buttons on lightning componenet
http://www.sfdcmonkey.com/2017/01/26/display-record-with-pager-buttons-lightning-component/
Hopes it helps
thansk
piyush parmarpiyush parmar
You can find out sample code for pagination on lightning components by client side. 

http://piyushparmar01.blogspot.in/2017/02/pagination-on-lightning-component.html

Cheers