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

65 lines
1.4 KiB
JavaScript
Raw Normal View History

2021-05-12 09:35:29 +00:00
const InputSwitchProps = [
{
name: "modelValue",
type: "boolean",
default: "null",
description: "Specifies whether a inputswitch should be checked or not."
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."
},
{
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 InputSwitchEvents = [
{
name: "click",
description: "Callback to invoke on click."
},
{
name: "change",
description: "Callback to invoke on value change."
},
{
name: "input",
description: "Callback to invoke on value change."
},
{
name: "focus",
description: "Callback to invoke when element receives focus."
},
{
name: "blur",
description: "Callback to invoke when element loses focus."
2021-05-12 09:35:29 +00:00
}
];
module.exports = {
inputswitch: {
name: "InputSwitch",
description: "InputSwitch is used to select a boolean value.",
2021-06-14 14:03:46 +00:00
props: InputSwitchProps,
events: InputSwitchEvents
2021-05-12 09:35:29 +00:00
}
};