UNPKG

@odoo/o-spreadsheet

Version:
40 lines (39 loc) 1.04 kB
import { Component } from "@odoo/owl"; import { CSSProperties, Pixel } from "../../types"; import { ScrollDirection } from "../../types/scroll_direction"; interface Props { width: Pixel; height: Pixel; direction: ScrollDirection; position: CSSProperties; offset: Pixel; onScroll: (offset: Pixel) => void; } export declare class ScrollBar extends Component<Props> { static props: { width: { type: NumberConstructor; optional: boolean; }; height: { type: NumberConstructor; optional: boolean; }; direction: StringConstructor; position: ObjectConstructor; offset: NumberConstructor; onScroll: FunctionConstructor; }; static template: string; static defaultProps: { width: number; height: number; }; private scrollbarRef; private scrollbar; setup(): void; get sizeCss(): string; get positionCss(): string; onScroll(ev: any): void; } export {};