UNPKG

1.14 kBTypeScriptView Raw
1import { ElementRef, EventEmitter, Renderer2, NgZone, OnInit, OnDestroy } from '@angular/core';
2import * as i0 from "@angular/core";
3export declare class ScrollerComponent implements OnInit, OnDestroy {
4 private ngZone;
5 private renderer;
6 scrollbarV: boolean;
7 scrollbarH: boolean;
8 scrollHeight: number;
9 scrollWidth: number;
10 scroll: EventEmitter<any>;
11 scrollYPos: number;
12 scrollXPos: number;
13 prevScrollYPos: number;
14 prevScrollXPos: number;
15 element: any;
16 parentElement: any;
17 onScrollListener: any;
18 private _scrollEventListener;
19 constructor(ngZone: NgZone, element: ElementRef, renderer: Renderer2);
20 ngOnInit(): void;
21 ngOnDestroy(): void;
22 setOffset(offsetY: number): void;
23 onScrolled(event: MouseEvent): void;
24 updateOffset(): void;
25 static ɵfac: i0.ɵɵFactoryDeclaration<ScrollerComponent, never>;
26 static ɵcmp: i0.ɵɵComponentDeclaration<ScrollerComponent, "datatable-scroller", never, { "scrollbarV": "scrollbarV"; "scrollbarH": "scrollbarH"; "scrollHeight": "scrollHeight"; "scrollWidth": "scrollWidth"; }, { "scroll": "scroll"; }, never, ["*"]>;
27}