UNPKG

@omnedia/ngx-scrollbar

Version:

A simple component library to create a custom scrollbar for the Y-Direction.

26 lines (23 loc) 1.07 kB
import * as i0 from '@angular/core'; import { AfterViewInit, ElementRef } from '@angular/core'; declare class NgxScrollbarComponent implements AfterViewInit { sidebarRef: ElementRef<HTMLElement>; wrapperRef: ElementRef<HTMLElement>; contentRef: ElementRef<HTMLElement>; scrollbarRef: ElementRef<HTMLElement>; styleClass?: string; set onlyShowOnHover(onlyShowOnHover: boolean); style: any; private scrollPercent; mouseDown: i0.WritableSignal<boolean>; private lastY?; onMouseDown(event: MouseEvent): void; onMouseUp(): void; ngAfterViewInit(): void; calcScrollbar(): void; onScroll(event: Event): void; onDrag(event: MouseEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgxScrollbarComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxScrollbarComponent, "om-scrollbar", never, { "styleClass": { "alias": "styleClass"; "required": false; }; "onlyShowOnHover": { "alias": "onlyShowOnHover"; "required": false; }; }, {}, never, ["*"], true, never>; } export { NgxScrollbarComponent };