Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First page load #9

Open
vcastrejont opened this issue Oct 22, 2013 · 2 comments
Open

First page load #9

vcastrejont opened this issue Oct 22, 2013 · 2 comments

Comments

@vcastrejont
Copy link

There is no way to load the first page when the paginator starts

'show' method only triggers 'page-changed' if you don't select the same page

@lyonlai
Copy link
Owner

lyonlai commented Oct 24, 2013

You can utilise the page-click method. Within page-click callback, just check if the clicking page equals to the current page and do the reload if that's a match.

@kafoso
Copy link

kafoso commented Jan 18, 2016

To be honest, the page-changed should not fire during the creation of the pagination DOM elements.

Currently, when the paginator is constructed, the event fires. A common scenario is that you want to load different content when the page is changed. However, because page-changed always fires when the pagination is first generated, it enters an endless loop, requesting the same page over and over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants