UNPKG

1.66 kBTypeScriptView Raw
1import { ScrollView as ScrollViewDefinition, ScrollEventData } from '.';
2import { ContentView } from '../content-view';
3import { Property } from '../core/properties';
4import { EventData } from '../../data/observable';
5import { CoreTypes } from '../../core-types';
6export declare abstract class ScrollViewBase extends ContentView implements ScrollViewDefinition {
7 private _scrollChangeCount;
8 static scrollEvent: string;
9 orientation: CoreTypes.OrientationType;
10 scrollBarIndicatorVisible: boolean;
11 isScrollEnabled: boolean;
12 addEventListener(arg: string, callback: any, thisArg?: any): void;
13 removeEventListener(arg: string, callback: any, thisArg?: any): void;
14 onLoaded(): void;
15 onUnloaded(): void;
16 private attach;
17 private dettach;
18 protected attachNative(): void;
19 protected dettachNative(): void;
20 get horizontalOffset(): number;
21 get verticalOffset(): number;
22 get scrollableWidth(): number;
23 get scrollableHeight(): number;
24 abstract scrollToVerticalOffset(value: number, animated: boolean): any;
25 abstract scrollToHorizontalOffset(value: number, animated: boolean): any;
26 abstract _onOrientationChanged(): any;
27}
28export interface ScrollViewBase {
29 on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): any;
30 on(event: 'scroll', callback: (args: ScrollEventData) => void, thisArg?: any): any;
31}
32export declare const orientationProperty: Property<ScrollViewBase, CoreTypes.OrientationType>;
33export declare const scrollBarIndicatorVisibleProperty: Property<ScrollViewBase, boolean>;
34export declare const isScrollEnabledProperty: Property<ScrollViewBase, boolean>;