/** * DevExtreme (ui/switch.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 Editor, { ValueChangedInfo, EditorOptions, } from './editor/editor'; /** @public */ export type ContentReadyEvent = EventInfo; /** @public */ export type DisposingEvent = EventInfo; /** @public */ export type InitializedEvent = InitializedEventInfo; /** @public */ export type OptionChangedEvent = EventInfo & ChangedOptionInfo; /** @public */ export type ValueChangedEvent = NativeEventInfo & ValueChangedInfo; /** * @deprecated use Properties instead * @namespace DevExpress.ui */ export interface dxSwitchOptions extends EditorOptions { /** * @docid * @default true * @public */ activeStateEnabled?: boolean; /** * @docid * @default true &for(desktop) * @public */ focusStateEnabled?: boolean; /** * @docid * @default true * @public */ hoverStateEnabled?: boolean; /** * @docid * @hidden false * @public */ name?: string; /** * @docid * @default "OFF" * @public */ switchedOffText?: string; /** * @docid * @default "ON" * @public */ switchedOnText?: string; /** * @docid * @default false * @public */ value?: boolean; } /** * @docid * @isEditor * @inherits Editor * @namespace DevExpress.ui * @public */ export default class dxSwitch extends Editor { constructor(element: UserDefinedElement, options?: dxSwitchOptions) } /** @public */ export type Properties = dxSwitchOptions; /** @deprecated use Properties instead */ export type Options = dxSwitchOptions; /** @deprecated use Properties instead */ export type IOptions = dxSwitchOptions;