UNPKG

ng-mat-select-infinite-scroll

Version:

Adds missing infinite scroll functionality for the angular material select component

26 lines (25 loc) 874 B
import { NgZone } from '@angular/core'; import * as i0 from "@angular/core"; export declare class InfiniteScrollService { private ngZone; private threshold; private debounceTime; private complete; private thrPx; private thrPc; private destroyed$; private selectItemHeightPx; private panel; constructor(ngZone: NgZone); initialize(panel: Element, selectItemHeightPx: number, config: { threshold: string; debounceTime: number; complete: boolean; }): void; evaluateThreshold(): void; registerScrollListener(infiniteScrollCallback: () => void): void; handleScrollEvent(event: any, infiniteScrollCallback: () => void): void; destroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<InfiniteScrollService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<InfiniteScrollService>; }