1rosehip / jplist-es6

jPList is a JavaScript library for sorting, pagination and filtering of any HTML structure like DIVs, UL/LI, tables, etc.
https://www.jplist.org/
MIT License
83 stars 39 forks source link

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

Closed ghost closed 5 years ago

ghost commented 6 years ago

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 ?

jiremek commented 5 years ago

Use this: e.jplistState.filtered.length

ghost commented 5 years ago

Thanks @jiremek !!!