/** * DevExtreme (ui/box.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 DataSource, { DataSourceOptions, } from '../data/data_source'; import Store from '../data/abstract_store'; import { EventInfo, NativeEventInfo, InitializedEventInfo, ChangedOptionInfo, ItemInfo, } from '../events/index'; import CollectionWidget, { CollectionWidgetItem, CollectionWidgetOptions, } from './collection/ui.collection_widget.base'; /** @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 dxBoxOptions extends CollectionWidgetOptions { /** * @docid * @type Enums.BoxAlign * @default 'start' * @public */ align?: 'center' | 'end' | 'space-around' | 'space-between' | 'start'; /** * @docid * @type Enums.BoxCrossAlign * @default 'start' * @public */ crossAlign?: 'center' | 'end' | 'start' | 'stretch'; /** * @docid * @type string | Array | Store | DataSource | DataSourceOptions * @default null * @public */ dataSource?: string | Array | Store | DataSource | DataSourceOptions; /** * @docid * @type Enums.BoxDirection * @default 'row' * @public */ direction?: 'col' | 'row'; /** * @docid * @type Array * @fires dxBoxOptions.onOptionChanged * @public */ items?: Array; } /** * @docid * @inherits CollectionWidget * @namespace DevExpress.ui * @public */ export default class dxBox extends CollectionWidget { constructor(element: UserDefinedElement, options?: dxBoxOptions) } /** * @public * @namespace DevExpress.ui.dxBox */ export type Item = dxBoxItem; /** * @deprecated Use Item instead * @namespace DevExpress.ui */ export interface dxBoxItem extends CollectionWidgetItem { /** * @docid * @type number | Enums.Mode * @default 0 * @public */ baseSize?: number | 'auto'; /** * @docid * @default undefined * @public */ box?: dxBoxOptions; /** * @docid * @default 0 * @public */ ratio?: number; /** * @docid * @default 1 * @public */ shrink?: number; } /** @public */ export type Properties = dxBoxOptions; /** @deprecated use Properties instead */ export type Options = dxBoxOptions; /** @deprecated use Properties instead */ export type IOptions = dxBoxOptions;