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

Getting Number of Items #149

Open
HoomanBahreini opened this issue Feb 18, 2019 · 0 comments
Open

Getting Number of Items #149

HoomanBahreini opened this issue Feb 18, 2019 · 0 comments

Comments

@HoomanBahreini
Copy link

HoomanBahreini commented Feb 18, 2019

Thank you for great library, I think SimplePagination.js is great.

This is not an issue, but feature request (I don't know how to raise a feature request, please let me know if there is a way to do this on GutHub).

I use your library, and in my case needed a way to get the number of items... this was needed for updating the pagination... in my local project, I added a function to your library, to get the number of items:

getItems: function () {
var o = this.data('pagination');
return o.items;
}

I think it would be useful to add this function to the library.

Thank again for great work,

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

1 participant