/** * DevExtreme (ui/tile_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 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 dxTileViewOptions extends CollectionWidgetOptions { /** * @docid * @default true * @public */ activeStateEnabled?: boolean; /** * @docid * @default 100 * @public */ baseItemHeight?: number; /** * @docid * @default 100 * @public */ baseItemWidth?: number; /** * @docid * @type string | Array | Store | DataSource | DataSourceOptions * @default null * @public */ dataSource?: string | Array | Store | DataSource | DataSourceOptions; /** * @docid * @type Enums.Orientation * @default 'horizontal' * @public */ direction?: 'horizontal' | 'vertical'; /** * @docid * @default true &for(desktop) * @public */ focusStateEnabled?: boolean; /** * @docid * @default 500 * @public */ height?: number | string | (() => number | string); /** * @docid * @default true * @public */ hoverStateEnabled?: boolean; /** * @docid * @default 20 * @public */ itemMargin?: number; /** * @docid * @type Array * @fires dxTileViewOptions.onOptionChanged * @public */ items?: Array; /** * @docid * @default false * @public */ showScrollbar?: boolean; } /** * @docid * @inherits CollectionWidget * @namespace DevExpress.ui * @public */ export default class dxTileView extends CollectionWidget { constructor(element: UserDefinedElement, options?: dxTileViewOptions) /** * @docid * @publicName scrollPosition() * @return numeric * @public */ scrollPosition(): number; } /** * @public * @namespace DevExpress.ui.dxTileView */ export type Item = dxTileViewItem; /** * @deprecated Use Item instead * @namespace DevExpress.ui */ export interface dxTileViewItem extends CollectionWidgetItem { /** * @docid * @default 1 * @public */ heightRatio?: number; /** * @docid * @default 1 * @public */ widthRatio?: number; } /** @public */ export type Properties = dxTileViewOptions; /** @deprecated use Properties instead */ export type Options = dxTileViewOptions; /** @deprecated use Properties instead */ export type IOptions = dxTileViewOptions;