E
E
Eugene2018-08-28 09:04:47
Yii
Eugene, 2018-08-28 09:04:47

What are the options for implementing pagination in this case?

What's the point. If on the left is aside with filtering options. When loading a page from the server, all laptops are taken by Ajax (Layout is formed on the server side). That is, the layout arrives in success and I just insert it into the desired block. But then it became a rather hemorrhoid question. If more than 6 laptops are received, then pagination is already needed. And the data is in fact on the user's side. How can pagination be implemented in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2018-08-28
@evgen9586

You can add its index to the wrapper of each price position through ...data-index="15"...
And then, when you click on the page button, hide those that should not be displayed on this page.
For example, for page 2, hide all and display indexes 7-13. etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question