UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

36 lines (35 loc) 1.81 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core'; import { Observable, Subscription } from 'rxjs'; import { NzTabScrollEvent, NzTabScrollEventHandlerFun, NzTabScrollListOffset, NzTabScrollListOffsetEvent } from './interfaces'; import * as i0 from "@angular/core"; export declare class NzTabScrollListDirective implements OnInit, OnDestroy { private ngZone; private elementRef; lastWheelDirection: 'x' | 'y' | null; lastWheelTimestamp: number; lastTimestamp: number; lastTimeDiff: number; lastMixedWheel: number; lastWheelPrevent: boolean; touchPosition: NzTabScrollListOffset | null; lastOffset: NzTabScrollListOffset | null; motion: number; unsubscribe: () => void; readonly offsetChange: EventEmitter<NzTabScrollListOffsetEvent>; readonly tabScroll: EventEmitter<NzTabScrollEvent>; constructor(ngZone: NgZone, elementRef: ElementRef<HTMLElement>); ngOnInit(): void; subscribeWrap<T extends NzTabScrollEvent['event']>(type: NzTabScrollEvent['type'], observable: Observable<T>, handler: NzTabScrollEventHandlerFun<T>): Subscription; onTouchEnd: (e: TouchEvent) => void; onTouchMove: (e: TouchEvent) => void; onTouchStart: (e: TouchEvent) => void; onWheel: (e: WheelEvent) => void; onOffset(x: number, y: number, event: Event): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NzTabScrollListDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NzTabScrollListDirective, "[nzTabScrollList]", never, {}, { "offsetChange": "offsetChange"; "tabScroll": "tabScroll"; }, never>; }