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",
|
|
|
|
default: "true",
|
|
|
|
description: "Value in checked state."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "falseValue",
|
|
|
|
type: "any",
|
|
|
|
default: "true",
|
|
|
|
description: "Value in unchecked state."
|
2021-06-14 14:03:46 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const CheckboxEvents = [
|
|
|
|
{
|
|
|
|
"name": "click",
|
|
|
|
"description": "Callback to invoke on value click.",
|
|
|
|
arguments: [
|
|
|
|
{
|
|
|
|
name: "event",
|
|
|
|
type: "object",
|
|
|
|
description: "Browser event"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "change",
|
|
|
|
"description": "Callback to invoke on value change.",
|
|
|
|
arguments: [
|
|
|
|
{
|
|
|
|
name: "event",
|
|
|
|
type: "object",
|
|
|
|
description: "Browser event"
|
|
|
|
}
|
|
|
|
]
|
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
|
|
|
}
|
|
|
|
};
|