/** * DevExtreme (ui/color_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, DxElement, } from '../core/element'; import { EventInfo, NativeEventInfo, InitializedEventInfo, ChangedOptionInfo, } from '../events/index'; import { template, } from '../core/templates/template'; import dxDropDownEditor, { dxDropDownEditorOptions, DropDownButtonTemplateDataModel, } from './drop_down_editor/ui.drop_down_editor'; import { ValueChangedInfo, } from './editor/editor'; /** @public */ export type ChangeEvent = NativeEventInfo; /** @public */ export type ClosedEvent = 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 OpenedEvent = EventInfo; /** @public */ export type OptionChangedEvent = EventInfo & ChangedOptionInfo; /** @public */ export type PasteEvent = NativeEventInfo; /** @public */ export type ValueChangedEvent = NativeEventInfo & ValueChangedInfo; /** @public */ export type DropDownButtonTemplateData = DropDownButtonTemplateDataModel; /** * @deprecated use Properties instead * @namespace DevExpress.ui */ export interface dxColorBoxOptions extends dxDropDownEditorOptions { /** * @docid * @default "OK" * @public */ applyButtonText?: string; /** * @docid * @type Enums.EditorApplyValueMode * @default "useButtons" * @public */ applyValueMode?: 'instantly' | 'useButtons'; /** * @docid * @default "Cancel" * @public */ cancelButtonText?: string; /** * @docid * @default false * @public */ editAlphaChannel?: boolean; /** * @docid * @default null * @type_function_return string|Element|jQuery * @public */ fieldTemplate?: template | ((value: string, fieldElement: DxElement) => string | UserDefinedElement); /** * @docid * @default 1 * @public */ keyStep?: number; /** * @docid * @public */ value?: string; } /** * @docid * @isEditor * @inherits dxDropDownEditor * @namespace DevExpress.ui * @public */ export default class dxColorBox extends dxDropDownEditor { constructor(element: UserDefinedElement, options?: dxColorBoxOptions) } /** @public */ export type Properties = dxColorBoxOptions; /** @deprecated use Properties instead */ export type Options = dxColorBoxOptions; /** @deprecated use Properties instead */ export type IOptions = dxColorBoxOptions;