primevue-mirror/api-generator/components/checkbox.js

67 lines
1.5 KiB
JavaScript
Raw Normal View History

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."
}
];
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
}
};