2021-05-12 09:35:29 +00:00
|
|
|
const CheckboxProps = [
|
|
|
|
{
|
|
|
|
name: "value",
|
|
|
|
type: "any",
|
|
|
|
default: "null",
|
|
|
|
description: "Value of the checkbox."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "modelValue",
|
|
|
|
type: "any",
|
|
|
|
default: "null",
|
|
|
|
description: "Value binding of the checkbox."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "binary",
|
|
|
|
type: "boolean",
|
|
|
|
default: "false",
|
|
|
|
description: "Allows to select a boolean value instead of multiple values."
|
2021-06-14 14:03:46 +00:00
|
|
|
},
|
|
|
|
{
|
2022-07-22 18:50:41 +00:00
|
|
|
name: "disabled",
|
|
|
|
type: "boolean",
|
|
|
|
default: "false",
|
|
|
|
description: "When present, it specifies that the element should be disabled."
|
2021-06-14 14:03:46 +00:00
|
|
|
},
|
|
|
|
{
|
2022-07-22 18:50:41 +00:00
|
|
|
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",
|
2021-06-14 14:03:46 +00:00
|
|
|
default: "null",
|
2022-07-22 18:50:41 +00:00
|
|
|
description: "Index of the element in tabbing order."
|
2021-08-25 06:48:02 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "trueValue",
|
|
|
|
type: "any",
|
2022-02-11 07:20:00 +00:00
|
|
|
default: "null",
|
2021-08-25 06:48:02 +00:00
|
|
|
description: "Value in checked state."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "falseValue",
|
|
|
|
type: "any",
|
2022-02-11 07:20:00 +00:00
|
|
|
default: "null",
|
2021-08-25 06:48:02 +00:00
|
|
|
description: "Value in unchecked state."
|
2022-07-22 18:50:41 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
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."
|
2021-06-14 14:03:46 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const CheckboxEvents = [
|
|
|
|
{
|
2021-08-25 06:58:21 +00:00
|
|
|
name: "click",
|
|
|
|
description: "Callback to invoke on value click.",
|
2021-06-14 14:03:46 +00:00
|
|
|
},
|
|
|
|
{
|
2021-08-25 06:58:21 +00:00
|
|
|
name: "change",
|
|
|
|
description: "Callback to invoke on value change.",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "input",
|
|
|
|
description: "Callback to invoke on value change."
|
2021-05-12 09:35:29 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
checkbox: {
|
|
|
|
name: "Checkbox",
|
|
|
|
description: "Checkbox is an extension to standard checkbox element with theming.",
|
2021-06-14 14:03:46 +00:00
|
|
|
props: CheckboxProps,
|
|
|
|
events: CheckboxEvents
|
2021-05-12 09:35:29 +00:00
|
|
|
}
|
|
|
|
};
|