ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
33 lines (32 loc) • 1.52 kB
TypeScript
/**
* 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';
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;
}