/** * DevExtreme (ui/overlay.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 { animationConfig, } from '../animation/fx'; import { UserDefinedElement, DxElement, } from '../core/element'; import { template, } from '../core/templates/template'; import { DxPromise, } from '../core/utils/deferred'; import { DxEvent, Cancelable, EventInfo, } from '../events/index'; import Widget, { WidgetOptions, } from './widget/ui.widget'; /** @namespace DevExpress.ui */ export interface dxOverlayOptions extends WidgetOptions { /** * @docid * @default { show: { type: "pop", duration: 300, from: { scale: 0.55 } }, hide: { type: "pop", duration: 300, to: { opacity: 0, scale: 0.55 }, from: { opacity: 1, scale: 1 } } } * @ref * @default { show: { type: 'fade', duration: 400 }, hide: { type: 'fade', duration: 400, to: { opacity: 0 }, from: { opacity: 1 } }} &for(Android_below_version_4.2) * @public * @type object */ animation?: dxOverlayAnimation; /** * @docid * @default false * @type_function_param1 event:event * @public */ closeOnOutsideClick?: boolean | ((event: DxEvent) => boolean); /** * @docid * @default "content" * @type_function_return string|Element|jQuery * @public */ contentTemplate?: template | ((contentElement: DxElement) => string | UserDefinedElement); /** * @docid * @default true * @public */ deferRendering?: boolean; /** * @docid * @default false * @public */ dragEnabled?: boolean; /** * @docid * @default function() { return $(window).height() * 0.8 } * @public */ height?: number | string | (() => number | string); /** * @docid * @default null * @public */ maxHeight?: number | string | (() => number | string); /** * @docid * @default null * @public */ maxWidth?: number | string | (() => number | string); /** * @docid * @default null * @public */ minHeight?: number | string | (() => number | string); /** * @docid * @default null * @public */ minWidth?: number | string | (() => number | string); /** * @docid * @default null * @type_function_param1 e:object * @type_function_param1_field1 component:this * @type_function_param1_field2 element:DxElement * @type_function_param1_field3 model:any * @action * @public */ onHidden?: ((e: EventInfo) => void); /** * @docid * @default null * @type_function_param1 e:object * @type_function_param1_field4 cancel:boolean * @type_function_param1_field1 component:this * @type_function_param1_field2 element:DxElement * @type_function_param1_field3 model:any * @action * @public */ onHiding?: ((e: Cancelable & EventInfo) => void); /** * @docid * @default null * @type_function_param1 e:object * @type_function_param1_field1 component:this * @type_function_param1_field2 element:DxElement * @type_function_param1_field3 model:any * @action * @public */ onShowing?: ((e: EventInfo) => void); /** * @docid * @default null * @type_function_param1 e:object * @type_function_param1_field1 component:this * @type_function_param1_field2 element:DxElement * @type_function_param1_field3 model:any * @action * @public */ onShown?: ((e: EventInfo) => void); /** * @docid * @default { my: 'center', at: 'center', of: window } * @fires dxOverlayOptions.onPositioned * @public */ position?: any; /** * @docid * @default true * @public */ shading?: boolean; /** * @docid * @default '' * @public */ shadingColor?: string; /** * @docid * @default false * @fires dxOverlayOptions.onShowing * @fires dxOverlayOptions.onHiding * @public */ visible?: boolean; /** * @docid * @default function() {return $(window).width() * 0.8 } * @public */ width?: number | string | (() => number | string); } /** @namespace DevExpress.ui */ export interface dxOverlayAnimation { /** * @docid dxOverlayOptions.animation.hide * @default { type: "pop", duration: 300, to: { opacity: 0, scale: 0.55 }, from: { opacity: 1, scale: 1 } } } * @public */ hide?: animationConfig; /** * @docid dxOverlayOptions.animation.show * @default { type: "pop", duration: 400, from: { scale: 0.55 } } * @public */ show?: animationConfig; } /** * @docid * @inherits Widget * @hidden * @namespace DevExpress.ui */ export default class dxOverlay extends Widget { constructor(element: UserDefinedElement, options?: dxOverlayOptions) /** * @docid * @publicName content() * @public */ content(): DxElement; /** * @docid * @publicName hide() * @return Promise * @public */ hide(): DxPromise; /** * @docid * @publicName repaint() * @public */ repaint(): void; /** * @docid * @publicName show() * @return Promise * @public */ show(): DxPromise; /** * @docid * @publicName toggle(showing) * @return Promise * @public */ toggle(showing: boolean): DxPromise; } /** * @docid ui.dxOverlay.baseZIndex * @publicName baseZIndex(zIndex) * @namespace DevExpress.ui.dxOverlay * @static * @public */ export function baseZIndex(zIndex: number): void; export type Options = dxOverlayOptions; export type IOptions = dxOverlayOptions;