devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
84 lines (81 loc) • 2.46 kB
TypeScript
/**
* DevExtreme (ui/check_box.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 Editor, {
EditorOptions
} from './editor/editor';
/** Warning! This type is used for internal purposes. Do not import it directly. */
export interface dxCheckBoxOptions extends EditorOptions<dxCheckBox> {
/**
* @docid dxCheckBoxOptions.activeStateEnabled
* @type boolean
* @default true
* @prevFileNamespace DevExpress.ui
* @public
*/
activeStateEnabled?: boolean;
/**
* @docid dxCheckBoxOptions.focusStateEnabled
* @type boolean
* @default true [for](desktop)
* @prevFileNamespace DevExpress.ui
* @public
*/
focusStateEnabled?: boolean;
/**
* @docid dxCheckBoxOptions.hoverStateEnabled
* @type boolean
* @default true
* @prevFileNamespace DevExpress.ui
* @public
*/
hoverStateEnabled?: boolean;
/**
* @docid dxCheckBoxOptions.name
* @type string
* @hidden false
* @prevFileNamespace DevExpress.ui
* @public
*/
name?: string;
/**
* @docid dxCheckBoxOptions.text
* @type string
* @default ""
* @prevFileNamespace DevExpress.ui
* @public
*/
text?: string;
/**
* @docid dxCheckBoxOptions.value
* @type boolean
* @default false
* @prevFileNamespace DevExpress.ui
* @public
*/
value?: boolean;
}
/** The CheckBox is a small box, which when selected by the end user, shows that a particular feature has been enabled or a specific option has been chosen. */
export default class dxCheckBox extends Editor {
constructor(element: Element, options?: dxCheckBoxOptions)
constructor(element: JQuery, options?: dxCheckBoxOptions)
}
declare global {
interface JQuery {
dxCheckBox(): JQuery;
dxCheckBox(options: "instance"): dxCheckBox;
dxCheckBox(options: string): any;
dxCheckBox(options: string, ...params: any[]): any;
dxCheckBox(options: dxCheckBoxOptions): JQuery;
}
}
/** Warning! This type is used for internal purposes. Do not import it directly. */
export type Options = dxCheckBoxOptions;
/** @deprecated use Options instead */
/** Warning! This type is used for internal purposes. Do not import it directly. */
export type IOptions = dxCheckBoxOptions;