import {BaseElement} from "./smart.element" /** The Radio Button component lets you add a radio button and assign it to a radio group. Users can select only one radio button at a time within a radio group */ export interface RadioButton extends BaseElement { /* Get a member by its name */ [name: string]: any; /** * Sets or gets the animation mode. Animation is disabled when the property is set to 'none' * Default value: advanced */ animation?: Animation; /** * Sets or gets the check state. * Default value: false */ checked?: boolean; /** * Sets or gets the part that toggles the element. * Default value: both */ checkMode?: CheckMode; /** * Sets the click mode of the radio button. * Default value: release */ clickMode?: ClickMode; /** * Enables or disables the ratio button. * Default value: false */ disabled?: boolean; /** * Sets or gets the widget's group name. * Default value: """" */ groupName?: string; /** * Sets or gets the widget's innerHTML. * Default value: """" */ innerHTML: string; /** * Sets or gets the language. Used in conjunction with the property messages. * Default value: "en" */ locale?: string; /** * Callback, related to localization module. * Default value: null */ localizeFormatFunction?: any; /** * Sets an object with string values, related to the different states of passwords strength. * Default value: * { * "en": { * "propertyUnknownType": "'' property is with undefined 'type' member!", * "propertyInvalidValue": "Invalid '!", * "propertyInvalidValueType": "Invalid '!", * "elementNotInDOM": "Element does not exist in DOM! Please, add the element to the DOM, before invoking a method.", * "moduleUndefined": "Module is undefined.", * "missingReference": ".", * "htmlTemplateNotSuported": ": Browser doesn't support HTMLTemplate elements.", * "invalidTemplate": "' property accepts a string that must match the id of an HTMLTemplate element from the DOM." * } * } */ messages?: any; /** * Sets or gets the widget's name. * Default value: """" */ name?: string; /** * If the custom element is readonly, it cannot be interacted with. * Default value: false */ readonly?: boolean; /** * Determines the theme. Theme defines the look of the element * Default value: "" */ theme?: string; /** * If is set to true, the element cannot be focused. * Default value: false */ unfocusable?: boolean; /** * Sets or gets the widget's value. * Default value: """" */ value?: string; /** * This event is triggered when the widget is checked/unchecked. * @param ev. The custom event. */ onchange: ((this: any, ev: Event) => any) | null; } declare global { interface Document { createElement(tagName: "jqx-radio-button"): RadioButton; querySelector(selectors: "jqx-radio-button"): RadioButton | null; querySelectorAll(selectors: "jqx-radio-button"): NodeListOf; getElementsByTagName(qualifiedName: "jqx-radio-button"): HTMLCollectionOf; getElementsByName(elementName: "jqx-radio-button"): NodeListOf; } } /**Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */ export enum Animation{ None = "none", Simple = "simple", Advanced = "advanced" } /**Sets or gets the part that toggles the element. */ export enum CheckMode{ Both = "both", Input = "input", Label = "label" } /**Sets the click mode of the radio button. */ export enum ClickMode{ Hover = "hover", Press = "press", Release = "release", PressAndRelease = "pressAndRelease" }