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
|
|
|
},
|
|
|
|
{
|
2022-07-22 19:08:02 +00:00
|
|
|
name: "trueValue",
|
|
|
|
type: "any",
|
2021-06-14 14:03:46 +00:00
|
|
|
default: "null",
|
2022-07-22 19:08:02 +00:00
|
|
|
description: "Value in checked state."
|
2021-06-14 14:03:46 +00:00
|
|
|
},
|
|
|
|
{
|
2022-07-22 19:08:02 +00:00
|
|
|
name: "falseValue",
|
2021-06-14 14:03:46 +00:00
|
|
|
type: "any",
|
|
|
|
default: "null",
|
2022-07-22 19:08:02 +00:00
|
|
|
description: "Value in unchecked state."
|
2021-08-25 06:53:23 +00:00
|
|
|
},
|
|
|
|
{
|
2022-07-22 19:08:02 +00:00
|
|
|
name: "inputId",
|
|
|
|
type: "string",
|
2022-02-11 07:20:00 +00:00
|
|
|
default: "null",
|
2022-07-22 19:08:02 +00:00
|
|
|
description: "Identifier of the underlying input element."
|
2021-08-25 06:53:23 +00:00
|
|
|
},
|
|
|
|
{
|
2022-07-22 19:08:02 +00:00
|
|
|
name: "inputStyle",
|
2021-08-25 06:53:23 +00:00
|
|
|
type: "any",
|
2022-02-11 07:20:00 +00:00
|
|
|
default: "null",
|
2022-07-22 19:08:02 +00:00
|
|
|
description: "Inline style of the input field."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "inputClass",
|
|
|
|
type: "string",
|
|
|
|
default: "null",
|
|
|
|
description: "Style class of the input field."
|
2022-07-22 19:12:13 +00:00
|
|
|
}
|
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."
|
2021-08-25 06:30:41 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "input",
|
|
|
|
description: "Callback to invoke on value change."
|
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
|
|
|
}
|
|
|
|
};
|