mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +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
55
api-generator/components/chip.js
Normal file
55
api-generator/components/chip.js
Normal file
|
@ -0,0 +1,55 @@
|
|||
const ChipProps = [
|
||||
{
|
||||
name: "label",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Defines the text to display."
|
||||
},
|
||||
{
|
||||
name: "icon",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Defines the icon to display."
|
||||
},
|
||||
{
|
||||
name: "image",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Defines the image to display."
|
||||
},
|
||||
{
|
||||
name: "removable",
|
||||
type: "boolean",
|
||||
default: "false",
|
||||
description: "Whether to display a remove icon."
|
||||
},
|
||||
{
|
||||
name: "removeIconClass",
|
||||
type: "string",
|
||||
default: "pi pi-times-circle",
|
||||
description: "Icon of the remove element."
|
||||
}
|
||||
];
|
||||
|
||||
const ChipEvents = [
|
||||
{
|
||||
name: "remove",
|
||||
description: "Callback to invoke when a chip is removed.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
chip: {
|
||||
name: "Chip",
|
||||
description: "Chip represents entities using icons, labels and images",
|
||||
props: ChipProps,
|
||||
events: ChipEvents
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue