/** * DevExtreme (ui/number_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 { EventInfo, NativeEventInfo, InitializedEventInfo, ChangedOptionInfo, } from '../events/index'; import dxTextEditor, { dxTextEditorButton, dxTextEditorOptions, } from './text_box/ui.text_editor.base'; import { ValueChangedInfo, } from './editor/editor'; import { format, } from './widget/ui.widget'; /** @public */ export type ChangeEvent = NativeEventInfo; /** @public */ export type ContentReadyEvent = EventInfo; /** @public */ export type CopyEvent = NativeEventInfo; /** @public */ export type CutEvent = NativeEventInfo; /** @public */ export type DisposingEvent = EventInfo; /** @public */ export type EnterKeyEvent = NativeEventInfo; /** @public */ export type FocusInEvent = NativeEventInfo; /** @public */ export type FocusOutEvent = NativeEventInfo; /** @public */ export type InitializedEvent = InitializedEventInfo; /** @public */ export type InputEvent = NativeEventInfo; /** @public */ export type KeyDownEvent = NativeEventInfo; /** @public */ export type KeyPressEvent = NativeEventInfo; /** @public */ export type KeyUpEvent = NativeEventInfo; /** @public */ export type OptionChangedEvent = EventInfo & ChangedOptionInfo; /** @public */ export type PasteEvent = NativeEventInfo; /** @public */ export type ValueChangedEvent = NativeEventInfo & ValueChangedInfo; /** * @deprecated use Properties instead * @namespace DevExpress.ui */ export interface dxNumberBoxOptions extends dxTextEditorOptions { /** * @docid * @type Array * @default undefined * @public */ buttons?: Array<'clear' | 'spins' | dxTextEditorButton>; /** * @docid * @default "" * @public */ format?: format; /** * @docid * @default "Value must be a number" * @public */ invalidValueMessage?: string; /** * @docid * @default undefined * @public */ max?: number; /** * @docid * @default undefined * @public */ min?: number; /** * @docid * @type Enums.NumberBoxMode * @default "text" * @default 'number' &for(mobile_devices) * @public */ mode?: 'number' | 'text' | 'tel'; /** * @docid * @default false * @public */ showSpinButtons?: boolean; /** * @docid * @default 1 * @public */ step?: number; /** * @docid * @default true * @default false &for(desktop) * @public */ useLargeSpinButtons?: boolean; /** * @docid * @default 0 * @public */ value?: number; } /** * @docid * @isEditor * @inherits dxTextEditor * @namespace DevExpress.ui * @public */ export default class dxNumberBox extends dxTextEditor { constructor(element: UserDefinedElement, options?: dxNumberBoxOptions) } /** @public */ export type Properties = dxNumberBoxOptions; /** @deprecated use Properties instead */ export type Options = dxNumberBoxOptions; /** @deprecated use Properties instead */ export type IOptions = dxNumberBoxOptions;