57 lines
1.2 KiB
JavaScript
57 lines
1.2 KiB
JavaScript
const InputSwitchProps = [
|
|
{
|
|
name: "modelValue",
|
|
type: "boolean",
|
|
default: "null",
|
|
description: "Specifies whether a inputswitch should be checked or not."
|
|
},
|
|
{
|
|
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."
|
|
}
|
|
];
|
|
|
|
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."
|
|
}
|
|
];
|
|
|
|
module.exports = {
|
|
inputswitch: {
|
|
name: "InputSwitch",
|
|
description: "InputSwitch is used to select a boolean value.",
|
|
props: InputSwitchProps,
|
|
events: InputSwitchEvents
|
|
}
|
|
};
|