primeng
Version:
PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB
101 lines (100 loc) • 4.21 kB
TypeScript
import { AnimationEvent } from '@angular/animations';
import { AfterContentInit, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
import { PrimeTemplate } from 'primeng/api';
import { BaseComponent } from 'primeng/basecomponent';
import { ButtonProps } from 'primeng/button';
import { ScrollTopStyle } from './style/scrolltopstyle';
import * as i0 from "@angular/core";
import * as i1 from "primeng/api";
/**
* ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly.
* @group Components
*/
export declare class ScrollTop extends BaseComponent implements OnInit, AfterContentInit, OnDestroy {
/**
* Class of the element.
* @group Props
*/
styleClass: string | undefined;
/**
* Inline style of the element.
* @group Props
*/
style: {
[klass: string]: any;
} | null | undefined;
/**
* Target of the ScrollTop.
* @group Props
*/
target: 'window' | 'parent' | undefined;
/**
* Defines the threshold value of the vertical scroll position of the target to toggle the visibility.
* @group Props
*/
threshold: number;
/**
* Name of the icon or JSX.Element for icon.
* @group Props
*/
get icon(): string | undefined;
/**
* Defines the scrolling behavior, "smooth" adds an animation and "auto" scrolls with a jump.
* @group Props
*/
behavior: 'auto' | 'smooth' | undefined;
/**
* A string value used to determine the display transition options.
* @group Props
*/
showTransitionOptions: string;
/**
* A string value used to determine the hiding transition options.
* @group Props
*/
hideTransitionOptions: string;
/**
* Establishes a string value that labels the scroll-top button.
* @group Props
*/
buttonAriaLabel: string | undefined;
/**
* Used to pass all properties of the ButtonProps to the Button component.
* @group Props
*/
buttonProps: ButtonProps;
/**
* Template of the icon.
* @group Templates
*/
iconTemplate: TemplateRef<any> | undefined;
templates: QueryList<PrimeTemplate> | undefined;
_iconTemplate: TemplateRef<any> | undefined;
_icon: string | undefined;
set icon(value: string | undefined);
documentScrollListener: VoidFunction | null | undefined;
parentScrollListener: VoidFunction | null | undefined;
visible: boolean;
overlay: any;
_componentStyle: ScrollTopStyle;
ngOnInit(): void;
ngAfterContentInit(): void;
onClick(): void;
onEnter(event: AnimationEvent): void;
onLeave(event: AnimationEvent): void;
checkVisibility(scrollY: number): void;
bindParentScrollListener(): void;
bindDocumentScrollListener(): void;
unbindParentScrollListener(): void;
unbindDocumentScrollListener(): void;
getStyleClass(): string;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollTop, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollTop, "p-scrollTop, p-scrolltop, p-scroll-top", never, { "styleClass": { "alias": "styleClass"; "required": false; }; "style": { "alias": "style"; "required": false; }; "target": { "alias": "target"; "required": false; }; "threshold": { "alias": "threshold"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "behavior": { "alias": "behavior"; "required": false; }; "showTransitionOptions": { "alias": "showTransitionOptions"; "required": false; }; "hideTransitionOptions": { "alias": "hideTransitionOptions"; "required": false; }; "buttonAriaLabel": { "alias": "buttonAriaLabel"; "required": false; }; "buttonProps": { "alias": "buttonProps"; "required": false; }; }, {}, ["iconTemplate", "templates"], never, true, never>;
static ngAcceptInputType_threshold: unknown;
}
export declare class ScrollTopModule {
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollTopModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollTopModule, never, [typeof ScrollTop, typeof i1.SharedModule], [typeof ScrollTop, typeof i1.SharedModule]>;
static ɵinj: i0.ɵɵInjectorDeclaration<ScrollTopModule>;
}