UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

91 lines (86 loc) 2.73 kB
/** * DevExtreme (ui/radio_group.d.ts) * Version: 19.2.6 * Build date: Thu Jan 30 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import DataSource from '../data/data_source'; import Editor, { EditorOptions } from './editor/editor'; import { DataExpressionMixinOptions } from './editor/ui.data_expression'; /** Warning! This type is used for internal purposes. Do not import it directly. */ export interface dxRadioGroupOptions extends EditorOptions<dxRadioGroup>, DataExpressionMixinOptions<dxRadioGroup> { /** * @docid dxRadioGroupOptions.activeStateEnabled * @type boolean * @default true * @prevFileNamespace DevExpress.ui * @public */ activeStateEnabled?: boolean; /** * @docid dxRadioGroupOptions.focusStateEnabled * @type boolean * @default true [for](desktop) * @prevFileNamespace DevExpress.ui * @public */ focusStateEnabled?: boolean; /** * @docid dxRadioGroupOptions.hoverStateEnabled * @type boolean * @default true * @prevFileNamespace DevExpress.ui * @public */ hoverStateEnabled?: boolean; /** * @docid dxRadioGroupOptions.layout * @default 'horizontal' [for](tablets) * @type Enums.Orientation * @default "vertical" * @prevFileNamespace DevExpress.ui * @public */ layout?: 'horizontal' | 'vertical'; /** * @docid dxRadioGroupOptions.name * @type string * @hidden false * @prevFileNamespace DevExpress.ui * @public */ name?: string; /** * @docid dxRadioGroupOptions.value * @ref * @prevFileNamespace DevExpress.ui * @public */ value?: any; } /** The RadioGroup is a widget 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: Element, options?: dxRadioGroupOptions) constructor(element: JQuery, options?: dxRadioGroupOptions) getDataSource(): DataSource; } declare global { interface JQuery { dxRadioGroup(): JQuery; dxRadioGroup(options: "instance"): dxRadioGroup; dxRadioGroup(options: string): any; dxRadioGroup(options: string, ...params: any[]): any; dxRadioGroup(options: dxRadioGroupOptions): JQuery; } } /** Warning! This type is used for internal purposes. Do not import it directly. */ export type Options = dxRadioGroupOptions; /** @deprecated use Options instead */ /** Warning! This type is used for internal purposes. Do not import it directly. */ export type IOptions = dxRadioGroupOptions;