angular2-infinite-scroll
Version:
An infinite scroll directive for angular2
26 lines (25 loc) • 614 B
TypeScript
import { ElementRef } from '@angular/core';
export declare type ContainerRef = Window | ElementRef | any;
export interface InfiniteScrollEvent {
currentScrollPosition: number;
}
export interface PositionElements {
windowElement: ContainerRef;
horizontal: boolean;
}
export interface PositionStats {
height: number;
scrolledUntilNow: number;
totalToScroll: number;
}
export interface ScrollerConfig {
distance: {
down: number;
up: number;
};
scrollParent?: ContainerRef;
}
export interface ScrollStats {
isScrollingDown: boolean;
shouldScroll: boolean;
}