1 | import { ScrollView as ScrollViewDefinition, ScrollEventData } from '.';
|
2 | import { ContentView } from '../content-view';
|
3 | import { Property } from '../core/properties';
|
4 | import { EventData } from '../../data/observable';
|
5 | import { CoreTypes } from '../../core-types';
|
6 | export 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 | }
|
28 | export 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 | }
|
32 | export declare const orientationProperty: Property<ScrollViewBase, CoreTypes.OrientationType>;
|
33 | export declare const scrollBarIndicatorVisibleProperty: Property<ScrollViewBase, boolean>;
|
34 | export declare const isScrollEnabledProperty: Property<ScrollViewBase, boolean>;
|