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
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "class",
|
|
|
|
type: "string",
|
|
|
|
default: "null",
|
|
|
|
description: "Style class of the component."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "style",
|
|
|
|
type: "any",
|
|
|
|
default: "null",
|
|
|
|
description: "Inline of the component."
|
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."
|
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
|
|
|
}
|
|
|
|
};
|