UNPKG

2.14 kBTypeScriptView Raw
1import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2import { IInfiniteScrollEvent } from '../models';
3import * as i0 from "@angular/core";
4export declare class InfiniteScrollDirective implements OnDestroy, OnChanges, AfterViewInit {
5 private element;
6 private zone;
7 scrolled: EventEmitter<IInfiniteScrollEvent>;
8 scrolledUp: EventEmitter<IInfiniteScrollEvent>;
9 infiniteScrollDistance: number;
10 infiniteScrollUpDistance: number;
11 infiniteScrollThrottle: number;
12 infiniteScrollDisabled: boolean;
13 infiniteScrollContainer: any;
14 scrollWindow: boolean;
15 immediateCheck: boolean;
16 horizontal: boolean;
17 alwaysCallback: boolean;
18 fromRoot: boolean;
19 private disposeScroller?;
20 constructor(element: ElementRef, zone: NgZone);
21 ngAfterViewInit(): void;
22 ngOnChanges({ infiniteScrollContainer, infiniteScrollDisabled, infiniteScrollDistance, }: SimpleChanges): void;
23 ngOnDestroy(): void;
24 private setup;
25 private handleOnScroll;
26 private destroyScroller;
27 static ɵfac: i0.ɵɵFactoryDeclaration<InfiniteScrollDirective, never>;
28 static ɵdir: i0.ɵɵDirectiveDeclaration<InfiniteScrollDirective, "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", never, { "infiniteScrollDistance": { "alias": "infiniteScrollDistance"; "required": false; }; "infiniteScrollUpDistance": { "alias": "infiniteScrollUpDistance"; "required": false; }; "infiniteScrollThrottle": { "alias": "infiniteScrollThrottle"; "required": false; }; "infiniteScrollDisabled": { "alias": "infiniteScrollDisabled"; "required": false; }; "infiniteScrollContainer": { "alias": "infiniteScrollContainer"; "required": false; }; "scrollWindow": { "alias": "scrollWindow"; "required": false; }; "immediateCheck": { "alias": "immediateCheck"; "required": false; }; "horizontal": { "alias": "horizontal"; "required": false; }; "alwaysCallback": { "alias": "alwaysCallback"; "required": false; }; "fromRoot": { "alias": "fromRoot"; "required": false; }; }, { "scrolled": "scrolled"; "scrolledUp": "scrolledUp"; }, never, never, true, never>;
29}