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

49 lines
1.2 KiB
JavaScript
Raw Normal View History

const ConfirmPopupProps = [
{
2022-09-14 14:26:41 +00:00
name: 'group',
type: 'string',
default: 'null',
description: 'Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance.'
2023-04-24 11:22:01 +00:00
},
{
name: 'pt',
type: 'any',
default: 'null',
2023-08-01 14:01:12 +00:00
description: 'Used to pass attributes to DOM elements inside the component.'
2023-07-06 13:20:37 +00:00
},
{
name: 'unstyled',
type: 'boolean',
default: 'false',
description: 'When enabled, it removes component related styles in the core.'
}
];
const ConfirmPopupSlots = [
{
2022-09-14 14:26:41 +00:00
name: 'message',
description: 'Custom content for the component.'
2023-04-18 13:42:36 +00:00
},
{
name: 'icon',
description: 'Custom icon template.'
},
{
name: 'accepticon',
description: 'Custom accept icon template.'
},
{
name: 'rejecticon',
description: 'Custom reject icon template.'
}
];
module.exports = {
confirmpopup: {
2022-09-14 14:26:41 +00:00
name: 'ConfirmPopup',
description: 'ConfirmPopup displays a confirmation overlay displayed relatively to its target.',
props: ConfirmPopupProps,
slots: ConfirmPopupSlots
}
};