/** * DevExtreme (ui/drawer.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 { template, } from '../core/templates/template'; import { DxEvent, EventInfo, InitializedEventInfo, ChangedOptionInfo, } from '../events/index'; import Widget, { WidgetOptions, } from './widget/ui.widget'; /** @public */ export type DisposingEvent = EventInfo; /** @public */ export type InitializedEvent = InitializedEventInfo; /** @public */ export type OptionChangedEvent = EventInfo & ChangedOptionInfo; /** * @deprecated use Properties instead * @namespace DevExpress.ui */ export interface dxDrawerOptions extends WidgetOptions { /** * @docid * @default 400 * @public */ animationDuration?: number; /** * @docid * @default true * @public */ animationEnabled?: boolean; /** * @docid * @default false * @type_function_param1 event:event * @public */ closeOnOutsideClick?: boolean | ((event: DxEvent) => boolean); /** * @docid * @default null * @public */ maxSize?: number; /** * @docid * @default null * @public */ minSize?: number; /** * @docid * @fires dxDrawerOptions.onOptionChanged * @default false * @public */ opened?: boolean; /** * @docid * @type Enums.DrawerOpenedStateMode * @default "shrink" * @public */ openedStateMode?: 'overlap' | 'shrink' | 'push'; /** * @docid * @type Enums.DrawerPosition * @default "left" * @public */ position?: 'left' | 'right' | 'top' | 'bottom' | 'before' | 'after'; /** * @docid * @type Enums.DrawerRevealMode * @default "slide" * @public */ revealMode?: 'slide' | 'expand'; /** * @docid * @default false * @public */ shading?: boolean; /** * @docid * @deprecated * @public */ target?: string | UserDefinedElement; /** * @docid * @default 'panel' * @public */ template?: template | ((Element: DxElement) => any); } /** * @docid * @inherits Widget * @hasTranscludedContent * @namespace DevExpress.ui * @public */ export default class dxDrawer extends Widget { constructor(element: UserDefinedElement, options?: dxDrawerOptions) /** * @docid * @publicName content() * @public */ content(): DxElement; /** * @docid * @publicName hide() * @return Promise * @public */ hide(): DxPromise; /** * @docid * @publicName show() * @return Promise * @public */ show(): DxPromise; /** * @docid * @publicName toggle() * @return Promise * @public */ toggle(): DxPromise; } /** @public */ export type Properties = dxDrawerOptions; /** @deprecated use Properties instead */ export type Options = dxDrawerOptions; /** @deprecated use Properties instead */ export type IOptions = dxDrawerOptions;