/** * DevExtreme (ui/action_sheet.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, DxElement, } from '../core/element'; import { DxPromise, } from '../core/utils/deferred'; import DataSource, { DataSourceOptions, } from '../data/data_source'; import Store from '../data/abstract_store'; import { DxEvent, Cancelable, EventInfo, NativeEventInfo, InitializedEventInfo, ChangedOptionInfo, ItemInfo, } from '../events/index'; import CollectionWidget, { CollectionWidgetItem, CollectionWidgetOptions, } from './collection/ui.collection_widget.base'; /** @public */ export type CancelClickEvent = Cancelable & EventInfo; /** @public */ export type ContentReadyEvent = EventInfo; /** @public */ export type DisposingEvent = EventInfo; /** @public */ export type InitializedEvent = InitializedEventInfo; /** @public */ export type ItemClickEvent = NativeEventInfo & ItemInfo; /** @public */ export type ItemContextMenuEvent = NativeEventInfo & ItemInfo; /** @public */ export type ItemHoldEvent = NativeEventInfo & ItemInfo; /** @public */ export type ItemRenderedEvent = EventInfo & ItemInfo; /** @public */ export type OptionChangedEvent = EventInfo & ChangedOptionInfo; /** * @deprecated use Properties instead * @namespace DevExpress.ui */ export interface dxActionSheetOptions extends CollectionWidgetOptions { /** * @docid * @default "Cancel" * @public */ cancelText?: string; /** * @docid * @type string | Array | Store | DataSource | DataSourceOptions * @default null * @public */ dataSource?: string | Array | Store | DataSource | DataSourceOptions; /** * @docid * @type Array * @fires dxActionSheetOptions.onOptionChanged * @public */ items?: Array; /** * @docid * @default null * @type_function_param1 e:object * @type_function_param1_field4 cancel:boolean * @type_function_param1_field1 component:dxActionSheet * @type_function_param1_field2 element:DxElement * @type_function_param1_field3 model:any * @action * @public */ onCancelClick?: ((e: CancelClickEvent) => void) | string; /** * @docid * @default true * @public */ showCancelButton?: boolean; /** * @docid * @default true * @public */ showTitle?: boolean; /** * @docid * @public */ target?: string | UserDefinedElement; /** * @docid * @default "" * @public */ title?: string; /** * @docid * @default false * @default true &for(iPad) * @public */ usePopover?: boolean; /** * @docid * @default false * @fires dxActionSheetOptions.onOptionChanged * @public */ visible?: boolean; } /** * @docid * @inherits CollectionWidget * @namespace DevExpress.ui * @public */ export default class dxActionSheet extends CollectionWidget { constructor(element: UserDefinedElement, options?: dxActionSheetOptions) /** * @docid * @publicName hide() * @return Promise * @public */ hide(): DxPromise; /** * @docid * @publicName show() * @return Promise * @public */ show(): DxPromise; /** * @docid * @publicName toggle(showing) * @return Promise * @public */ toggle(showing: boolean): DxPromise; } /** * @public * @namespace DevExpress.ui.dxActionSheet */ export type Item = dxActionSheetItem; /** * @deprecated Use Item instead * @namespace DevExpress.ui */ export interface dxActionSheetItem extends CollectionWidgetItem { /** * @docid * @public */ icon?: string; /** * @docid * @default null * @type_function_param1_field3 model:object * @type_function_param1_field4 event:event * @public */ onClick?: ((e: { component?: dxActionSheet; element?: DxElement; model?: any; event?: DxEvent }) => void) | string; /** * @docid * @type Enums.ButtonType * @default 'normal' * @public */ type?: 'back' | 'danger' | 'default' | 'normal' | 'success'; } /** @public */ export type Properties = dxActionSheetOptions; /** @deprecated use Properties instead */ export type Options = dxActionSheetOptions; /** @deprecated use Properties instead */ export type IOptions = dxActionSheetOptions;