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

112 lines
2.6 KiB
JavaScript
Raw Normal View History

2021-05-12 09:35:29 +00:00
const InputSwitchProps = [
{
2022-08-22 13:47:07 +00:00
name: "value",
2021-05-12 09:35:29 +00:00
type: "boolean",
default: "null",
description: "Specifies whether a inputswitch should be checked or not."
2021-06-14 14:03:46 +00:00
},
{
2022-08-22 13:47:07 +00:00
name: "inputId",
type: "string",
2021-06-14 14:03:46 +00:00
default: "null",
2022-08-22 13:47:07 +00:00
description: "Identifier of the input element."
},
{
2022-08-22 13:47:07 +00:00
name: "name",
2022-07-22 19:08:02 +00:00
type: "string",
2022-02-11 07:20:00 +00:00
default: "null",
2022-08-22 13:47:07 +00:00
description: "Name of the input element."
},
{
2022-08-22 13:47:07 +00:00
name: "disabled",
type: "boolean",
default: "false",
description: "When present, it specifies that the component should be disabled."
2022-07-22 19:08:02 +00:00
},
{
2022-08-22 13:47:07 +00:00
name: "ariaLabelledBy",
2022-07-22 19:08:02 +00:00
type: "string",
default: "null",
2022-08-22 13:47:07 +00:00
description: "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
2022-08-08 14:02:07 +00:00
},
{
2022-08-22 13:47:07 +00:00
name: "trueValue",
type: "any",
default: "true",
description: "Value in checked state."
},
{
name: "falseValue",
type: "any",
default: "true",
description: "Value in unchecked state."
2022-07-22 19:12:13 +00:00
}
2021-06-14 14:03:46 +00:00
];
const InputSwitchEvents = [
2022-08-22 13:47:07 +00:00
{
name: "change",
description: "Callback to invoke on value change.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
},
{
name: "input",
description: "Checked state as a boolean.",
arguments: [
{
name: "event",
type: "object",
description: "New value"
}
]
},
2021-06-14 14:03:46 +00:00
{
name: "click",
2022-08-22 13:47:07 +00:00
description: "Callback to invoke click.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
2021-06-14 14:03:46 +00:00
},
{
2022-08-22 13:47:07 +00:00
name: "focus",
description: "Callback to invoke on focus.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
},
{
2022-08-22 13:47:07 +00:00
name: "blur",
description: "Callback to invoke on blur.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
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
}
};