/** * DevExtreme (ui/text_box.d.ts) * Version: 25.1.7 * Build date: Mon Nov 10 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { EventInfo, NativeEventInfo, InitializedEventInfo, ChangedOptionInfo, InteractionEvent, } from '../events'; import { ValueChangedInfo, EditorOptionsWithValue, } from './editor/editor'; import dxTextEditor, { dxTextEditorOptions, } from './text_box/ui.text_editor.base'; export type TextBoxType = 'email' | 'password' | 'search' | 'tel' | 'text' | 'url'; /** * The type of the change event handler's argument. */ export type ChangeEvent = NativeEventInfo; /** * The type of the contentReady event handler's argument. */ export type ContentReadyEvent = EventInfo; /** * The type of the copy event handler's argument. */ export type CopyEvent = NativeEventInfo; /** * The type of the cut event handler's argument. */ export type CutEvent = NativeEventInfo; /** * The type of the disposing event handler's argument. */ export type DisposingEvent = EventInfo; /** * The type of the enterKey event handler's argument. */ export type EnterKeyEvent = NativeEventInfo; /** * The type of the focusIn event handler's argument. */ export type FocusInEvent = NativeEventInfo; /** * The type of the focusOut event handler's argument. */ export type FocusOutEvent = NativeEventInfo; /** * The type of the initialized event handler's argument. */ export type InitializedEvent = InitializedEventInfo; /** * The type of the input event handler's argument. */ export type InputEvent = NativeEventInfo; /** * The type of the keyDown event handler's argument. */ export type KeyDownEvent = NativeEventInfo; export type KeyPressEvent = NativeEventInfo; /** * The type of the keyUp event handler's argument. */ export type KeyUpEvent = NativeEventInfo; /** * The type of the optionChanged event handler's argument. */ export type OptionChangedEvent = EventInfo & ChangedOptionInfo; /** * The type of the paste event handler's argument. */ export type PasteEvent = NativeEventInfo; /** * The type of the valueChanged event handler's argument. */ export type ValueChangedEvent = NativeEventInfo & ValueChangedInfo; /** * * @deprecated * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. */ export interface dxTextBoxOptions extends dxTextEditorOptions { /** * Specifies the maximum number of characters you can enter into the textbox. */ maxLength?: string | number; /** * The 'mode' attribute value of the actual HTML input element representing the text box. */ mode?: TextBoxType; /** * Specifies a value the UI component displays. */ value?: string; } /** * The TextBox is a UI component that enables a user to enter and edit a single line of text. */ export default class dxTextBox< TProperties extends EditorOptionsWithValue = Properties, > extends dxTextEditor { /** * Resets the value property to the value passed as an argument. */ reset(value?: TProperties['value']): void; } /** * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. */ interface TextBoxInstance extends dxTextBox { } export type Properties = dxTextBoxOptions; /** * @deprecated use Properties instead * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. */ export type Options = Properties;