UNPKG

framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

25 lines (22 loc) 853 B
import Framework7, { CSSSelector, Framework7EventsClass, Framework7Plugin } from '../app/app-class'; export namespace InfiniteScroll { interface DomEvents { /** Event will be triggered when page scroll reaches specified (in data-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;