framework7
Version:
Full featured mobile HTML framework for building iOS & Android apps
24 lines (21 loc) • 854 B
TypeScript
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-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;