primeng
Version:
[](https://badge.fury.io/js/primeng) [](https://www.npmjs.com/package/primeng) [ • 2.42 kB
TypeScript
import { OnInit, OnDestroy, ElementRef, ChangeDetectorRef, Renderer2, QueryList, TemplateRef } from '@angular/core';
import { AnimationEvent } from '@angular/animations';
import { PrimeNGConfig } from 'primeng/api';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "primeng/icons/chevronup";
import * as i3 from "primeng/api";
export declare class ScrollTop implements OnInit, OnDestroy {
private document;
private platformId;
private renderer;
el: ElementRef;
private cd;
config: PrimeNGConfig;
styleClass: string;
style: any;
target: string;
threshold: number;
icon: string;
behavior: string;
showTransitionOptions: string;
hideTransitionOptions: string;
templates: QueryList<any>;
iconTemplate: TemplateRef<any>;
documentScrollListener: VoidFunction | null;
parentScrollListener: VoidFunction | null;
visible: boolean;
overlay: any;
private window;
constructor(document: Document, platformId: any, renderer: Renderer2, el: ElementRef, cd: ChangeDetectorRef, config: PrimeNGConfig);
ngOnInit(): void;
ngAfterContentInit(): void;
onClick(): void;
onEnter(event: AnimationEvent): void;
onLeave(event: AnimationEvent): void;
checkVisibility(scrollY: any): void;
bindParentScrollListener(): void;
bindDocumentScrollListener(): void;
unbindParentScrollListener(): void;
unbindDocumentScrollListener(): void;
containerClass(): {
'p-scrolltop p-link p-component': boolean;
'p-scrolltop-sticky': boolean;
};
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollTop, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollTop, "p-scrollTop", never, { "styleClass": "styleClass"; "style": "style"; "target": "target"; "threshold": "threshold"; "icon": "icon"; "behavior": "behavior"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; }, {}, ["templates"], never, false, never>;
}
export declare class ScrollTopModule {
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollTopModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollTopModule, [typeof ScrollTop], [typeof i1.CommonModule, typeof i2.ChevronUpIcon, typeof i3.SharedModule], [typeof ScrollTop, typeof i3.SharedModule]>;
static ɵinj: i0.ɵɵInjectorDeclaration<ScrollTopModule>;
}