UNPKG

framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

28 lines (25 loc) 864 B
import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin, } from '../app/app-class.js'; export namespace InfiniteScroll { interface DomEvents { /** Event will be triggered when page scroll reaches specified (in data-infinite-distance attribute) distance to the bottom. */ infinite: () => void; } interface AppMethods { infiniteScroll: { /** Add infinite scroll event listener to the specified HTML element */ create(el: HTMLElement | CSSSelector): void; /** Remove infinite scroll event listener from the specified HTML container */ destroy(el: HTMLElement | CSSSelector): void; }; } interface AppParams {} interface AppEvents { infinite: (el: HTMLElement, event: Event) => void; } } declare const InfiniteScrollComponent: Framework7Plugin; export default InfiniteScrollComponent;