1 | import { InfiniteScrollEvent, PositionStats } from './models';
|
2 | import { ElementRef, EventEmitter, OnDestroy, OnInit, NgZone } from '@angular/core';
|
3 | import { PositionResolverFactory } from './position-resolver';
|
4 | import { ScrollRegister } from './scroll-register';
|
5 | import { ScrollResolver } from './scroll-resolver';
|
6 | export declare class InfiniteScroll implements OnDestroy, OnInit {
|
7 | private element;
|
8 | private zone;
|
9 | private positionResolverFactory;
|
10 | private scrollRegister;
|
11 | private scrollerResolver;
|
12 | scrolled: EventEmitter<InfiniteScrollEvent>;
|
13 | scrolledUp: EventEmitter<InfiniteScrollEvent>;
|
14 | _distanceDown: number;
|
15 | _distanceUp: number;
|
16 | _throttle: number;
|
17 | _disabled: boolean;
|
18 | _container: any;
|
19 | scrollWindow: boolean;
|
20 | _immediate: boolean;
|
21 | _horizontal: boolean;
|
22 | _alwaysCallback: boolean;
|
23 | debounce: string | boolean;
|
24 | private throttleType;
|
25 | private disposeScroller;
|
26 | constructor(element: ElementRef, zone: NgZone, positionResolverFactory: PositionResolverFactory, scrollRegister: ScrollRegister, scrollerResolver: ScrollResolver);
|
27 | ngOnInit(): void;
|
28 | handleOnScroll(container: PositionStats): void;
|
29 | shouldTriggerEvents(shouldScroll: boolean): boolean;
|
30 | ngOnDestroy(): void;
|
31 | onScrollDown(data?: InfiniteScrollEvent): void;
|
32 | onScrollUp(data?: InfiniteScrollEvent): void;
|
33 | private resolveContainerElement();
|
34 | }
|