/** * DevExtreme (ui/scroll_view.d.ts) * Version: 21.1.7 * Build date: Thu Aug 07 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { UserDefinedElement, } from '../core/element'; import { DxPromise, } from '../core/utils/deferred'; import { EventInfo, InitializedEventInfo, ChangedOptionInfo, } from '../events/index'; import dxScrollable, { dxScrollableOptions, ScrollEventInfo, } from './scroll_view/ui.scrollable'; /** @public */ export type DisposingEvent = EventInfo; /** @public */ export type InitializedEvent = InitializedEventInfo; /** @public */ export type OptionChangedEvent = EventInfo & ChangedOptionInfo; /** @public */ export type PullDownEvent = EventInfo; /** @public */ export type ReachBottomEvent = EventInfo; /** @public */ export type ScrollEvent = ScrollEventInfo; /** @public */ export type UpdatedEvent = ScrollEventInfo; /** * @deprecated use Properties instead * @namespace DevExpress.ui */ export interface dxScrollViewOptions extends dxScrollableOptions { /** * @docid * @default null * @type_function_param1 e:object * @type_function_param1_field1 component:dxScrollView * @type_function_param1_field2 element:DxElement * @type_function_param1_field3 model:any * @action * @public */ onPullDown?: ((e: PullDownEvent) => void); /** * @docid * @default null * @type_function_param1 e:object * @type_function_param1_field1 component:dxScrollView * @type_function_param1_field2 element:DxElement * @type_function_param1_field3 model:any * @action * @public */ onReachBottom?: ((e: ReachBottomEvent) => void); /** * @docid * @default "Release to refresh..." * @default "" &for(Material) * @public */ pulledDownText?: string; /** * @docid * @default "Pull down to refresh..." * @default "" &for(Material) * @public */ pullingDownText?: string; /** * @docid * @default "Loading..." * @default "" &for(Material) * @public */ reachBottomText?: string; /** * @docid * @default "Refreshing..." * @default "" &for(Material) * @public */ refreshingText?: string; } /** * @docid * @inherits dxScrollable * @hasTranscludedContent * @namespace DevExpress.ui * @public */ export default class dxScrollView extends dxScrollable { constructor(element: UserDefinedElement, options?: dxScrollViewOptions) /** * @docid * @publicName refresh() * @public */ refresh(): void; /** * @docid * @publicName release(preventScrollBottom) * @return Promise * @public */ release(preventScrollBottom: boolean): DxPromise; } /** @public */ export type Properties = dxScrollViewOptions; /** @deprecated use Properties instead */ export type Options = dxScrollViewOptions; /** @deprecated use Properties instead */ export type IOptions = dxScrollViewOptions;