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

82 lines
1.9 KiB
JavaScript
Raw Normal View History

2021-05-12 09:35:29 +00:00
const TriStateCheckboxProps = [
{
2022-08-22 13:47:07 +00:00
name: "value",
2021-05-12 09:35:29 +00:00
type: "boolean",
default: "null",
description: "Value of the component."
2021-06-14 14:03:46 +00:00
},
{
2022-08-22 13:47:07 +00:00
name: "ariaLabelledBy",
2022-08-08 14:02:07 +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."
}
];
const TriStateCheckboxEvents = [
{
name: "change",
description: "Callback to invoke on value change.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
2022-08-08 14:02:07 +00:00
},
{
2022-08-22 13:47:07 +00:00
name: "input",
description: "Callback to invoke click.",
arguments: [
{
name: "event",
type: "object",
description: "Value of checkbox"
}
]
2021-06-14 14:03:46 +00:00
},
{
2022-08-22 13:47:07 +00:00
name: "click",
description: "Callback to invoke click.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
},
{
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 = {
tristatecheckbox: {
name: "TriStateCheckbox",
description: 'TriStateCheckbox is used to select either "true", "false" or "null" as the value.',
2022-08-22 13:47:07 +00:00
props: TriStateCheckboxProps,
events: TriStateCheckboxEvents
2021-05-12 09:35:29 +00:00
}
};