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

How to get the the total number of items (not items on first page) after filtering ? #32

Closed
ghost opened this issue Nov 5, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 5, 2018

How is it possible to get the total number of items before/after filtering using multiple filters or change please?
e.jplistState.itemsNumber only returns the items on the first page unfortunately
and this https://www.jplist.org/documentation/controls/counter doesn't do the trick either unfortunately. Is there a way to globally get the total number of items ?

@ghost ghost changed the title How to get the the number of items (not pages) after filtering / pagination ? How to get the the total number of items (not items on first page) after filtering ? Nov 5, 2018
@jiremek
Copy link

jiremek commented Mar 19, 2019

Use this: e.jplistState.filtered.length

@ghost
Copy link
Author

ghost commented May 7, 2019

Thanks @jiremek !!!

@ghost ghost closed this as completed May 7, 2019
This issue was closed.
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