diff --git a/api-generator/components/checkbox.js b/api-generator/components/checkbox.js index d98987487..b6e41aee9 100644 --- a/api-generator/components/checkbox.js +++ b/api-generator/components/checkbox.js @@ -18,16 +18,28 @@ const CheckboxProps = [ description: "Allows to select a boolean value instead of multiple values." }, { - name: "class", - type: "string", - default: "null", - description: "Style class of the component." + name: "disabled", + type: "boolean", + default: "false", + description: "When present, it specifies that the element should be disabled." }, { - name: "style", - type: "any", + name: "readonly", + type: "boolean", + default: "false", + description: "When present, it specifies that an input field is read-only." + }, + { + name: "required", + type: "boolean", + default: "false", + description: "When present, it specifies that the element is required." + }, + { + name: "tabindex", + type: "number", default: "null", - description: "Inline of the component." + description: "Index of the element in tabbing order." }, { name: "trueValue", @@ -40,6 +52,24 @@ const CheckboxProps = [ type: "any", default: "null", description: "Value in unchecked state." + }, + { + name: "inputId", + type: "string", + default: "null", + description: "Identifier of the underlying input element." + }, + { + name: "inputClass", + type: "any", + default: "null", + description: "Style class of the input field." + }, + { + name: "inputStyle", + type: "any", + default: "null", + description: "Inline style of the input field." } ]; diff --git a/src/components/checkbox/Checkbox.d.ts b/src/components/checkbox/Checkbox.d.ts index 5129df124..f81a0ee70 100755 --- a/src/components/checkbox/Checkbox.d.ts +++ b/src/components/checkbox/Checkbox.d.ts @@ -9,18 +9,30 @@ export interface CheckboxProps { * Value binding of the checkbox. */ modelValue?: any; + /** + * Name of the input element. + */ + name?: string | undefined; /** * Allows to select a boolean value instead of multiple values. */ binary?: boolean; /** - * Style class of the component input field. + * When present, it specifies that the element should be disabled. */ - class?: any; + disabled?: boolean | undefined; /** - * Inline style of the component. + * When present, it specifies that an input field is read-only. */ - style?: any; + readonly?: boolean | undefined; + /** + * When present, it specifies that the element is required. + */ + required?: boolean | undefined; + /** + * Index of the element in tabbing order. + */ + tabindex?: number | undefined; /** * Value in checked state. */ @@ -29,6 +41,22 @@ export interface CheckboxProps { * Value in unchecked state. */ falseValue?: any; + /** + * Identifier of the underlying input element. + */ + inputId?: string | undefined; + /** + * Style class of the input field. + */ + inputClass?: any | undefined; + /** + * Inline style of the input field. + */ + inputStyle?: any | undefined; + /** + * + */ + inputProps?: object | undefined; } export interface CheckboxSlots { diff --git a/src/components/checkbox/Checkbox.vue b/src/components/checkbox/Checkbox.vue index 012296bd1..bc2a999d9 100755 --- a/src/components/checkbox/Checkbox.vue +++ b/src/components/checkbox/Checkbox.vue @@ -1,7 +1,7 @@