UNPKG

@skyux/layout

Version:

This library was generated with [Nx](https://nx.dev).

26 lines (25 loc) 1.09 kB
import { ElementRef, OnDestroy } from '@angular/core'; import { SkyAppWindowRef, SkyScrollableHostService } from '@skyux/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * @internal */ export declare class SkyBackToTopDomAdapterService implements OnDestroy { #private; constructor(windowRef: SkyAppWindowRef, scrollableHostService: SkyScrollableHostService); ngOnDestroy(): void; /** * This event returns a boolean on scroll indicating whether the provided element is in view. * @param elementRef The target element reference. */ elementInViewOnScroll(elementRef: ElementRef): Observable<boolean>; /** * Scrolls the window or scrollable parent to the provided element. * @param elementRef The target element reference. */ scrollToElement(elementRef: ElementRef): void; isElementScrolledInView(element: ElementRef): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<SkyBackToTopDomAdapterService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<SkyBackToTopDomAdapterService>; }