Using the Sticky Header/Footer Plugin

January 22, 2017 ยท View on GitHub

If you'd like to disable scrolling within the grid container, in favor of an infinite scroll UI you can use the sticky header/footer feature.

export const plugins = {
    STICKY_HEADER: {
        enabled: true,
        scrollTarget: '#my-scrollable-div',
        listener: customFunc
    },
    STICKY_FOOTER: {
        enabled: true,
        scrollTarget: '#my-scrollable-div',
        listener: customFunc
    }
}
PropTypeDescription
enabledboolwhether the sticky header is initialized
scrollTargetstringoptional, useds as a selector to find the scrollable parent, ex. '.page-container'
listenerfuncoptional, custom function to be called on scroll