UNPKG

primeng

Version:

[![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.svg)](https://www.npmjs.com/package/primeng) [![Actions CI](https://github.com/primefaces/primeng/workflows/No

84 lines (83 loc) 3.42 kB
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, QueryList, Renderer2, TemplateRef } from '@angular/core'; import { PrimeTemplate } from 'primeng/api'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; /** * ScrollPanel is a cross browser, lightweight and themable alternative to native browser scrollbar. * @group Components */ export declare class ScrollPanel implements AfterViewInit, AfterContentInit, OnDestroy { private platformId; el: ElementRef; zone: NgZone; cd: ChangeDetectorRef; private document; private renderer; /** * Inline style of the component. * @group Props */ style: { [klass: string]: any; } | null | undefined; /** * Style class of the component. * @group Props */ styleClass: string | undefined; containerViewChild: ElementRef | undefined; contentViewChild: ElementRef | undefined; xBarViewChild: ElementRef | undefined; yBarViewChild: ElementRef | undefined; templates: QueryList<PrimeTemplate> | undefined; scrollYRatio: number | undefined; scrollXRatio: number | undefined; timeoutFrame: any; initialized: boolean; lastPageY: number | undefined; lastPageX: number | undefined; isXBarClicked: boolean; isYBarClicked: boolean; contentTemplate: TemplateRef<any> | undefined; windowResizeListener: VoidFunction | null | undefined; contentScrollListener: VoidFunction | null | undefined; mouseEnterListener: VoidFunction | null | undefined; xBarMouseDownListener: VoidFunction | null | undefined; yBarMouseDownListener: VoidFunction | null | undefined; documentMouseMoveListener: VoidFunction | null | undefined; documentMouseUpListener: VoidFunction | null | undefined; constructor(platformId: any, el: ElementRef, zone: NgZone, cd: ChangeDetectorRef, document: Document, renderer: Renderer2); ngAfterViewInit(): void; ngAfterContentInit(): void; calculateContainerHeight(): void; moveBar(): void; onYBarMouseDown(e: MouseEvent): void; bindDocumentMouseListeners(): void; unbindDocumentMouseListeners(): void; onXBarMouseDown(e: MouseEvent): void; onDocumentMouseMove(e: MouseEvent): void; onMouseMoveForXBar(e: MouseEvent): void; onMouseMoveForYBar(e: MouseEvent): void; /** * Scrolls the top location to the given value. * @param scrollTop * @group Method */ scrollTop(scrollTop: number): void; onDocumentMouseUp(e: Event): void; requestAnimationFrame(f: VoidFunction): void; unbindListeners(): void; ngOnDestroy(): void; /** * Refreshes the position and size of the scrollbar. * @group Method */ refresh(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ScrollPanel, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ScrollPanel, "p-scrollPanel", never, { "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; }, {}, ["templates"], ["*"], false, never>; } export declare class ScrollPanelModule { static ɵfac: i0.ɵɵFactoryDeclaration<ScrollPanelModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollPanelModule, [typeof ScrollPanel], [typeof i1.CommonModule], [typeof ScrollPanel]>; static ɵinj: i0.ɵɵInjectorDeclaration<ScrollPanelModule>; }