mixitup icon indicating copy to clipboard operation
mixitup copied to clipboard

MixItUp Pagination: Load More / Infinite Scroll Demos

Open patrickkunka opened this issue 7 years ago • 6 comments

As reported by a customer, the load more button is disabled prematurely when the total number of items is not exactly divisible my the limit increment.

On line 90 (line 181 of Infinite Scroll), change to:

if (state.activePagination.limit >= state.totalMatching) {
    // Disable button

    loadMoreEl.disabled = true;
} else if (loadMoreEl.disabled) {
    // Enable button

    loadMoreEl.disabled = false;
}

patrickkunka avatar Sep 04 '18 20:09 patrickkunka

Sorry, just wondering where the Load More / Infinite Scroll Demos live right now? Looked all over, totally not seeing it. Thanks!

onetrev avatar Oct 18 '18 12:10 onetrev

They're in the pagination package. Because the premium extensions aren't open source, you'd need to purchase the extension to get access to the demos.

patrickkunka avatar Oct 18 '18 18:10 patrickkunka

Ah, makes sense now. I have a legacy license, but not this one so I can't see those yet. Either way, I'm guessing this functionality is implied by this line on the Pagination page,

"Dynamically generated controls and page statistics based on the current filter and page limit values".

Maybe for some Google juice, might be good to add on something like, "e.g. Load More / Infinite Scroll" as this is something that really puts MixItUp above the crowd.

onetrev avatar Oct 18 '18 22:10 onetrev

I'll give it some thought. TBH, those two features are kind of a hack on top of pagination, and perhaps not what someone would expect if they were searching for that functionality, so I'll need to word it carefuly.

patrickkunka avatar Oct 20 '18 10:10 patrickkunka

Thank you for this, worked like a charm!

burnified avatar Jun 03 '19 16:06 burnified

Hi, I'm looking for a Infinite Scroll pagination feature. Can I check whether that is a part of the pagination package please as I can't see anything about it on the MixItUp Pagination page.

steven-js avatar Jul 16 '20 07:07 steven-js