mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #2989 - Toast: new close and life-end methods
This commit is contained in:
parent
d3e7b71b09
commit
57a490ffbd
5 changed files with 48 additions and 8 deletions
|
@ -31,6 +31,31 @@ const ToastProps = [
|
|||
}
|
||||
];
|
||||
|
||||
const ToastEvents = [
|
||||
{
|
||||
name: 'close',
|
||||
description: 'Callback to invoke when the toast is closed.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'message',
|
||||
type: 'any',
|
||||
description: 'Message of toast.'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'life-end',
|
||||
description: 'Callback to invoke when the toast timeout is over.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'message',
|
||||
type: 'any',
|
||||
description: 'Message of toast.'
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const ToastSlots = [
|
||||
{
|
||||
name: 'message',
|
||||
|
@ -43,6 +68,7 @@ module.exports = {
|
|||
name: 'Toast',
|
||||
description: 'Toast is used to display messages in an overlay.',
|
||||
props: ToastProps,
|
||||
events: ToastEvents,
|
||||
slots: ToastSlots
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue