Custom Pagination Component

  1. Create a lightning Event “PaginationEvent.evt”

    2) Create a Lightning Component “Pagination”

3) Click Controller and Paste the following.

4) Click Helper and Paste the following.

 

Teacher Custom Component

 

5) Create new Object called Teacher with three custom fields and add multiple records.

 

 

 

6) Create new Lightning Component for the teacher object.

7) Click on controller and paste the following code:

8) Click helper and paste the following:

9) Follow steps 6-8 for any other components.  Make sure to update the tablename, objectName, listname.

10) You can create an lightning app to  test it. (Create a lightning app and copy the following)

Click preview:

 

2 thoughts on “Custom Pagination Component

  1. I see you don’t monetize your site, don’t waste your traffic,
    you can earn additional bucks every month because you’ve got hi quality content.

    If you want to know how to make extra money, search for:
    Boorfe’s tips best adsense alternative

Leave a Reply

Your email address will not be published. Required fields are marked *