@nicky-lenaers/ngx-scroll-to
Version:
A simple Angular 4+ plugin enabling you to smooth scroll to any element on your page and enhance scroll-based features in your app.
30 lines (29 loc) • 1.48 kB
TypeScript
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
import { ScrollToOffsetMap, ScrollToTarget } from './scroll-to-config.interface';
import { ScrollToAnimationEasing } from './scroll-to-easing.interface';
import { ScrollToEvent } from './scroll-to-event.interface';
import { ScrollToService } from './scroll-to.service';
import * as i0 from "@angular/core";
export declare class ScrollToDirective implements AfterViewInit {
private elementRef;
private scrollToService;
private renderer2;
ngxScrollTo: ScrollToTarget;
ngxScrollToEvent: ScrollToEvent;
ngxScrollToDuration: number;
ngxScrollToEasing: ScrollToAnimationEasing;
ngxScrollToOffset: number;
ngxScrollToOffsetMap: ScrollToOffsetMap;
private options;
constructor(elementRef: ElementRef, scrollToService: ScrollToService, renderer2: Renderer2);
/**
* Angular Lifecycle Hook - After View Init
*
* @todo Implement Subscription for Events
*
* @returns void
*/
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollToDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollToDirective, "[ngxScrollTo]", never, { "ngxScrollTo": "ngxScrollTo"; "ngxScrollToEvent": "ngxScrollToEvent"; "ngxScrollToDuration": "ngxScrollToDuration"; "ngxScrollToEasing": "ngxScrollToEasing"; "ngxScrollToOffset": "ngxScrollToOffset"; "ngxScrollToOffsetMap": "ngxScrollToOffsetMap"; }, {}, never, never, false>;
}