diff --git a/src/components/confirmationservice/ConfirmationService.d.ts b/src/components/confirmationservice/ConfirmationService.d.ts index 0a1a610cf..0fec0231a 100644 --- a/src/components/confirmationservice/ConfirmationService.d.ts +++ b/src/components/confirmationservice/ConfirmationService.d.ts @@ -4,8 +4,15 @@ import { ConfirmationOptions } from '../confirmationoptions'; declare const plugin: Plugin; export default plugin; -interface ConfirmationServiceMethods { +export interface ConfirmationServiceMethods { + /** + * Displays the dialog using the confirmation object options. + * @param {ConfirmationOptions} options - Confirmation Object + */ require(options: ConfirmationOptions): void; + /** + * Hides the dialog without invoking accept or reject callbacks. + */ close(): void; } diff --git a/src/views/confirmdialog/ConfirmDialogDoc.vue b/src/views/confirmdialog/ConfirmDialogDoc.vue index e3d9d4091..f8a24f02e 100644 --- a/src/views/confirmdialog/ConfirmDialogDoc.vue +++ b/src/views/confirmdialog/ConfirmDialogDoc.vue @@ -32,6 +32,7 @@ import ConfirmDialog from 'primevue/confirmdialog'; <ConfirmDialog></ConfirmDialog> <Button @click="delete()" icon="pi pi-check" label="Confirm"></Button> +
@@ -202,6 +203,31 @@ export default {
+ ConfirmationService
+
+
+
+
+ Name
+ Parameters
+ Description
+
+
+
+
+ require
+ confirm: Confirmation Object
+ Displays the dialog using the confirmation object options.
+
+
+ close
+ -
+ Hides the dialog without invoking accept or reject callbacks.
+
+
+
+
+
Properties
Any property as style and class are passed to the main container element. Following are the additional properties to configure the component.
diff --git a/src/views/confirmpopup/ConfirmPopupDoc.vue b/src/views/confirmpopup/ConfirmPopupDoc.vue
index c06264a8b..6d634ccd9 100644
--- a/src/views/confirmpopup/ConfirmPopupDoc.vue
+++ b/src/views/confirmpopup/ConfirmPopupDoc.vue
@@ -32,6 +32,7 @@ import ConfirmPopup from 'primevue/confirmpopup';
<ConfirmPopup></ConfirmPopup>
<Button @click="delete($event)" icon="pi pi-check" label="Confirm"></Button>
+
@@ -161,7 +162,7 @@ export default {
null
Callback to execute when action is rejected.
-
+
acceptLabel
string
null
@@ -200,6 +201,31 @@ export default {
+
+ ConfirmationService
+
+
+
+
+ Name
+ Parameters
+ Description
+
+
+
+
+ require
+ confirm: Confirmation Object
+ Displays the dialog using the confirmation object options.
+
+
+ close
+ -
+ Hides the dialog without invoking accept or reject callbacks.
+
+
+
+
Properties
Any property as style and class are passed to the main container element. Following are the additional properties to configure the component.