devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
110 lines (105 loc) • 3.35 kB
TypeScript
/**
* DevExtreme (ui/scroll_view.d.ts)
* Version: 19.2.6
* Build date: Thu Jan 30 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import '../jquery_augmentation';
import {
dxElement
} from '../core/element';
import dxScrollable, {
dxScrollableOptions
} from './scroll_view/ui.scrollable';
/** Warning! This type is used for internal purposes. Do not import it directly. */
export interface dxScrollViewOptions extends dxScrollableOptions<dxScrollView> {
/**
* @docid dxScrollViewOptions.onPullDown
* @extends Action
* @action
* @prevFileNamespace DevExpress.ui
* @public
*/
onPullDown?: ((e: { component?: dxScrollView, element?: dxElement, model?: any }) => any);
/**
* @docid dxScrollViewOptions.onReachBottom
* @extends Action
* @action
* @prevFileNamespace DevExpress.ui
* @public
*/
onReachBottom?: ((e: { component?: dxScrollView, element?: dxElement, model?: any }) => any);
/**
* @docid dxScrollViewOptions.pulledDownText
* @type string
* @default "Release to refresh..."
* @default "" [for](Material)
* @prevFileNamespace DevExpress.ui
* @public
*/
pulledDownText?: string;
/**
* @docid dxScrollViewOptions.pullingDownText
* @type string
* @default "Pull down to refresh..."
* @default "" [for](Material)
* @prevFileNamespace DevExpress.ui
* @public
*/
pullingDownText?: string;
/**
* @docid dxScrollViewOptions.reachBottomText
* @type string
* @default "Loading..."
* @default "" [for](Material)
* @prevFileNamespace DevExpress.ui
* @public
*/
reachBottomText?: string;
/**
* @docid dxScrollViewOptions.refreshingText
* @type string
* @default "Refreshing..."
* @default "" [for](Material)
* @prevFileNamespace DevExpress.ui
* @public
*/
refreshingText?: string;
}
/** The ScrollView is a widget that enables a user to scroll its content. */
export default class dxScrollView extends dxScrollable {
constructor(element: Element, options?: dxScrollViewOptions)
constructor(element: JQuery, options?: dxScrollViewOptions)
/**
* @docid dxScrollViewMethods.refresh
* @publicName refresh()
* @prevFileNamespace DevExpress.ui
* @public
*/
refresh(): void;
/**
* @docid dxScrollViewMethods.release
* @publicName release(preventScrollBottom)
* @param1 preventScrollBottom:boolean
* @return Promise<void>
* @prevFileNamespace DevExpress.ui
* @public
*/
release(preventScrollBottom: boolean): Promise<void> & JQueryPromise<void>;
}
declare global {
interface JQuery {
dxScrollView(): JQuery;
dxScrollView(options: "instance"): dxScrollView;
dxScrollView(options: string): any;
dxScrollView(options: string, ...params: any[]): any;
dxScrollView(options: dxScrollViewOptions): JQuery;
}
}
/** Warning! This type is used for internal purposes. Do not import it directly. */
export type Options = dxScrollViewOptions;
/** @deprecated use Options instead */
/** Warning! This type is used for internal purposes. Do not import it directly. */
export type IOptions = dxScrollViewOptions;