ng-cw-v12
Version:
Angular UI Component Library
23 lines (22 loc) • 968 B
TypeScript
import { ElementRef, OnDestroy, Renderer2 } from '@angular/core';
import * as i0 from "@angular/core";
export declare type NcScrollBarType = 'show' | 'hide' | 'hover';
export declare class HorizontalScrollDirective implements OnDestroy {
private el;
private renderer;
/** 滚动条显示模式 */
private _scrollBar;
set ncScrollBar(value: NcScrollBarType);
get ncScrollBar(): NcScrollBarType;
private isMouseOver;
constructor(el: ElementRef, renderer: Renderer2);
ngAfterViewInit(): void;
private updateScrollbarVisibility;
private applyScrollbarStyles;
onMouseEnter(): void;
onMouseLeave(): void;
onWheel(event: WheelEvent): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<HorizontalScrollDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<HorizontalScrollDirective, "[ncHorizontalScroll]", never, { "ncScrollBar": "ncScrollBar"; }, {}, never>;
}