primevue-mirror/components/lib/confirmationservice/ConfirmationService.d.ts

35 lines
788 B
TypeScript
Raw Normal View History

/**
*
* [Live Demo](https://www.primevue.org/confirmdialog/)
*
2023-03-07 13:37:45 +00:00
* @module confirmationservice-useconfirm
*
*/
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;
/**
* Confirmation Service methods.
2023-03-07 13:37:45 +00:00
* @group Model
*/
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
}
declare module 'vue' {
2022-09-06 12:03:37 +00:00
interface ComponentCustomProperties {
$confirm: ConfirmationServiceMethods;
}
}