• Nikhil Bujade
  • 10 Points
  • Member since 2018

  • Chatter
  • 0
    Best Answers
  • 1
    Likes Received
  • 1
    Likes Given
  • 2
  • 0
I want to implement pagination on lightning componet. Is there any standard functionality present in salesforce? The pagination should be as displayed in image.
User-added image

Basically, need an ability to jump to any page, end, beginning, next, previous, and knowing approximately how many pages.
I have created the lightning component and want to display it on VF page and render as PDF. For this, I have created a Lightning Dependency App and added it to VF page using $Lightning.createComponent(String type, Object attributes, String locator, function callback). 
I have followed steps mentioned in the following documentation: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_visualforce.htm
But nothing is displayed in PDF.

Here is the code:
​<aura:application access="GLOBAL" extends="ltng:outApp">
    <aura:dependency resource="c:AccountSnapshotComponent"/>

VF Page:
<apex:page renderAs="pdf" standardStylesheets="false">
    <apex:includeLightning />
    <div id="lightning" />
        $Lightning.use("c:AccountSnapshotApp", function() {
                                       { label : "Press Me!" },
                                       function(cmp) {
                                           // do some stuff

 Please help to display data in PDF format.