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

Destroying/ reloading pagination #10

Open
kkrzysiek11 opened this issue Nov 19, 2017 · 3 comments
Open

Destroying/ reloading pagination #10

kkrzysiek11 opened this issue Nov 19, 2017 · 3 comments

Comments

@kkrzysiek11
Copy link

HI,
I just started using your plugin. I'm using it on a list which is filterable.
The plugin doesn't have any option to reload the items or destroy pagination and load them once again.

@ghost
Copy link

ghost commented Mar 28, 2018

Is there no update to this?

@hnkumar
Copy link

hnkumar commented Dec 13, 2018

Any work around solution?

@danielDigitalArt
Copy link

i got this working like so:
initialize the pagination as always.
Filter your list, then replace the content:

        $('#easyPaginate').html(filteredList);
        $('.easyPaginateNav').remove(); 

Rebuild the Pagination:

        $('#easyPaginate').easyPaginate({
            paginateElement: '.item',
            elementsPerPage: 5,
            effect: 'climb',
            hashPage: 'page',
        });

Somehow the Pagination was not really updating when i tried it first, the solution seemed to be to use the ID "#easyPaginate" otherwise the List was somewhat broken.

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