2023-03-06 07:22:29 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/confirmdialog/)
|
|
|
|
*
|
2023-03-07 13:37:45 +00:00
|
|
|
* @module confirmationservice-useconfirm
|
2023-03-06 07:22:29 +00:00
|
|
|
*
|
|
|
|
*/
|
2023-01-03 09:31:56 +00:00
|
|
|
import { Plugin } from 'vue';
|
2022-09-06 12:03:37 +00:00
|
|
|
import { ConfirmationOptions } from '../confirmationoptions';
|
|
|
|
|
|
|
|
declare const plugin: Plugin;
|
|
|
|
export default plugin;
|
|
|
|
|
2023-03-06 07:22:29 +00:00
|
|
|
/**
|
|
|
|
* Confirmation Service methods.
|
2023-03-07 13:37:45 +00:00
|
|
|
* @group Model
|
2023-03-06 07:22:29 +00:00
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
export interface ConfirmationServiceMethods {
|
|
|
|
/**
|
|
|
|
* Displays the dialog using the confirmation object options.
|
|
|
|
* @param {ConfirmationOptions} options - Confirmation Object
|
|
|
|
*/
|
2023-03-06 10:59:56 +00:00
|
|
|
require(options: ConfirmationOptions): void;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Hides the dialog without invoking accept or reject callbacks.
|
|
|
|
*/
|
2023-03-06 10:59:56 +00:00
|
|
|
close(): void;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 02:42:55 +00:00
|
|
|
declare module 'vue' {
|
2022-09-06 12:03:37 +00:00
|
|
|
interface ComponentCustomProperties {
|
|
|
|
$confirm: ConfirmationServiceMethods;
|
|
|
|
}
|
|
|
|
}
|