mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Pages route change - api generator added
This commit is contained in:
parent
28b8e0a7e0
commit
3eac7d6658
179 changed files with 10592 additions and 5 deletions
63
api-generator/components/fieldset.js
Normal file
63
api-generator/components/fieldset.js
Normal file
|
@ -0,0 +1,63 @@
|
|||
const FieldsetProps = [
|
||||
{
|
||||
name: "legend",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Header text of the fieldset."
|
||||
},
|
||||
{
|
||||
name: "toggleable",
|
||||
type: "boolean",
|
||||
default: "null",
|
||||
description:
|
||||
"When specified, content can toggled by clicking the legend."
|
||||
},
|
||||
{
|
||||
name: "collapsed",
|
||||
type: "boolean",
|
||||
default: "true",
|
||||
description: "Defines the default visibility state of the content."
|
||||
},
|
||||
{
|
||||
name: "toggleButtonProps",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Uses to pass the custom value to read for the anchor inside the component."
|
||||
}
|
||||
];
|
||||
|
||||
const FieldsetEvents = [
|
||||
{
|
||||
name: "toggle",
|
||||
description: "Callback to invoke when a tab gets expanded or collapsed.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
},
|
||||
{
|
||||
name: "event.value",
|
||||
type: "boolean",
|
||||
description: "collapsed state as a boolean"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const FieldsetSlots = [
|
||||
{
|
||||
name: "legend",
|
||||
description: "Custom content for the component's header"
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
fieldset: {
|
||||
name: "Fieldset",
|
||||
description: "Fieldset is a grouping component with the optional content toggle feature.",
|
||||
props: FieldsetProps,
|
||||
events: FieldsetEvents,
|
||||
slots: FieldsetSlots
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue