UNPKG

@alauda/ui

Version:

Angular UI components by Alauda Frontend Team.

29 lines (28 loc) 1.33 kB
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core'; import { TocContentDirective } from './toc-content.directive'; import * as i0 from "@angular/core"; export declare class TocContainerDirective implements AfterContentInit, OnDestroy { private readonly cdr; activedChange: EventEmitter<string>; private _contents; private readonly _scrollTop$; private readonly _scrollTo$; private readonly _onDestroy$; private readonly _subs; private readonly _nativeElement; get scrollTop(): number; set scrollTop(value: number); get isScrollEnd(): boolean; constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef); getOffsetTop(element: HTMLElement): number; private getMinContent; private getMaxContent; onScroll(): void; ngAfterContentInit(): void; ngOnDestroy(): void; scrollTo(content: string[] | string): void; registerContent(tocContent: TocContentDirective): void; deregisterContent(tocContent: TocContentDirective): void; static ɵfac: i0.ɵɵFactoryDeclaration<TocContainerDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<TocContainerDirective, "[auiTocContainer]", ["auiTocContainer"], {}, { "activedChange": "activedChange"; }, never, never, true, never>; }