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

43 lines
918 B
TypeScript
Raw Normal View History

/**
*
* [Live Demo](https://www.primevue.org/confirmdialog/)
*
* @module confirmationservice
*
*/
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.
*
* @group Interfaces
*
*/
2022-09-06 12:03:37 +00:00
export interface ConfirmationServiceMethods {
/**
* Displays the dialog using the confirmation object options.
* @param {ConfirmationOptions} options - Confirmation Object
*/
require: (options: ConfirmationOptions) => void;
2022-09-06 12:03:37 +00:00
/**
* Hides the dialog without invoking accept or reject callbacks.
*/
close: () => void;
2022-09-06 12:03:37 +00:00
}
declare module 'vue/types/vue' {
interface Vue {
$confirm: ConfirmationServiceMethods;
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$confirm: ConfirmationServiceMethods;
}
}