Skip to content

I copied the example "Grid 2 (with local Pagination)" into my project, but the pagination does not appear. #1077

Answered by LRHF
LRHF asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your answer. I found the issue. I had these 2 lines inside of activate():

  this.dataset1 = this.mockData(1000);
  this.dataset2 = this.mockData(1000);

But it's compulsory for them to be in attached(), I didn't see that in the documentation, even putting them in the contructor() does not work. It's a tricky error because you are able to see the rows in the grid, but the .slick-pagination-container is not generated and no errors are displayed in the Console.

Another observation, I'm using Font Awesome 6 Free and the font-width: 900 is compulsory, otherwise you cannot see the icons. And there in no SCSS variable for that, so I had to do it manually:

.slick-pagination .slick-pagi…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ghiscoding
Comment options

Answer selected by LRHF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants