UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

48 lines (45 loc) 1.95 kB
/** * DevExtreme (ui/check_box.d.ts) * Version: 20.1.7 * Build date: Tue Aug 25 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> { /** Specifies whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; /** Specifies whether the widget can be focused using keyboard navigation. */ focusStateEnabled?: boolean; /** Specifies whether the widget changes its state when a user pauses on it. */ hoverStateEnabled?: boolean; /** The value to be assigned to the `name` attribute of the underlying HTML element. */ name?: string; /** Specifies the text displayed by the check box. */ text?: string; /** Specifies the widget state. */ 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;