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
55
api-generator/components/message.js
Normal file
55
api-generator/components/message.js
Normal file
|
@ -0,0 +1,55 @@
|
|||
const MessageProps = [
|
||||
{
|
||||
name: "severity",
|
||||
type: "string",
|
||||
default: "info",
|
||||
description: 'Severity level of the message. Valid severities are "success", "info", "warn" and "error".'
|
||||
},
|
||||
{
|
||||
name: "closable",
|
||||
type: "boolean",
|
||||
default: "true",
|
||||
description: "Whether the message can be closed manually using the close icon."
|
||||
},
|
||||
{
|
||||
name: "sticky",
|
||||
type: "boolean",
|
||||
default: "null",
|
||||
description: "When enabled, message is not removed automatically."
|
||||
},
|
||||
{
|
||||
name: "life",
|
||||
type: "number",
|
||||
default: "300",
|
||||
description: "Delay in milliseconds to close the message automatically."
|
||||
},
|
||||
{
|
||||
name: "icon",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Display a custom icon for the message."
|
||||
}
|
||||
];
|
||||
|
||||
const MessageEvents = [
|
||||
{
|
||||
name: "close",
|
||||
description: "Callback to invoke when a message is closed.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
message: {
|
||||
name: "Message",
|
||||
description: "Messages is used to display inline messages with various severities.",
|
||||
props: MessageProps,
|
||||
events: MessageEvents
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue