UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

92 lines (78 loc) 2.85 kB
/** * DevExtreme (ui/radio_group.d.ts) * Version: 21.1.4 * Build date: Mon Jun 21 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { UserDefinedElement } from '../core/element'; import DataSource from '../data/data_source'; import { EventInfo, NativeEventInfo, InitializedEventInfo, ChangedOptionInfo } from '../events/index'; import Editor, { ValueChangedInfo, EditorOptions } from './editor/editor'; import { DataExpressionMixinOptions } from './editor/ui.data_expression'; export type ContentReadyEvent = EventInfo<dxRadioGroup>; export type DisposingEvent = EventInfo<dxRadioGroup>; export type InitializedEvent = InitializedEventInfo<dxRadioGroup>; export type OptionChangedEvent = EventInfo<dxRadioGroup> & ChangedOptionInfo; export type ValueChangedEvent = NativeEventInfo<dxRadioGroup> & ValueChangedInfo; /** * @deprecated use Properties instead * @deprecated Attention! This type is for internal purposes only. If you used it previously, please describe your scenario in the following GitHub Issue, and we will suggest a public alternative: {@link https://github.com/DevExpress/DevExtreme/issues/17885|Internal Types}. */ export interface dxRadioGroupOptions extends EditorOptions<dxRadioGroup>, DataExpressionMixinOptions<dxRadioGroup> { /** * */ activeStateEnabled?: boolean; /** * */ focusStateEnabled?: boolean; /** * */ hoverStateEnabled?: boolean; /** * Specifies the radio group layout. */ layout?: 'horizontal' | 'vertical'; /** * */ name?: string; /** * */ value?: any; } /** * The RadioGroup is a UI component that contains a set of radio buttons and allows an end user to make a single selection from the set. */ export default class dxRadioGroup extends Editor { constructor(element: UserDefinedElement, options?: dxRadioGroupOptions) getDataSource(): DataSource; } export type Properties = dxRadioGroupOptions; /** * @deprecated use Properties instead * @deprecated Attention! This type is for internal purposes only. If you used it previously, please describe your scenario in the following GitHub Issue, and we will suggest a public alternative: {@link https://github.com/DevExpress/DevExtreme/issues/17885|Internal Types}. */ export type Options = dxRadioGroupOptions; /** * @deprecated use Properties instead * @deprecated Attention! This type is for internal purposes only. If you used it previously, please describe your scenario in the following GitHub Issue, and we will suggest a public alternative: {@link https://github.com/DevExpress/DevExtreme/issues/17885|Internal Types}. */ export type IOptions = dxRadioGroupOptions;