From 15dc3f06f228fdaf4aca5641615f8b1d4400aa35 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Dec 2021 16:20:34 +0300 Subject: [PATCH] Fixed #1836 - For ConfirmationOptions --- .../ConfirmationOptions.d.ts | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/components/confirmationoptions/ConfirmationOptions.d.ts diff --git a/src/components/confirmationoptions/ConfirmationOptions.d.ts b/src/components/confirmationoptions/ConfirmationOptions.d.ts new file mode 100644 index 000000000..9c074a7ec --- /dev/null +++ b/src/components/confirmationoptions/ConfirmationOptions.d.ts @@ -0,0 +1,50 @@ +export interface ConfirmationOptions { + /** + * Element to align the overlay. + */ + target?: HTMLElement | undefined; + /** + * Message of the confirmation. + */ + message?: string | undefined; + /** + * Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance. + */ + group?: string | undefined; + /** + * Icon to display next to the message. + */ + icon?: string | undefined; + /** + * Callback to execute when action is confirmed. + */ + accept?: () => void; + /** + * Callback to execute when action is rejected. + */ + reject?: () => void; + /** + * Label of the accept button. Defaults to PrimeVue Locale configuration. + */ + acceptLabel?: string | undefined; + /** + * Label of the reject button. Defaults to PrimeVue Locale configuration. + */ + rejectLabel?: string | undefined; + /** + * Icon of the accept button. + */ + acceptIcon?: string | undefined; + /** + * Icon of the reject button. + */ + rejectIcon?: string | undefined; + /** + * Style class of the accept button. + */ + acceptClass?: string | undefined; + /** + * Style class of the reject button. + */ + rejectClass?: string | undefined; +}