primevue-mirror/components/dialogservice/DialogService.d.ts

41 lines
960 B
TypeScript
Raw Normal View History

/**
*
* [Live Demo](https://www.primevue.org/dynamicdialog/)
*
* @module dialogservice
*
*/
2022-09-06 12:03:37 +00:00
import { Plugin } from 'vue';
import { DynamicDialogInstance, DynamicDialogOptions } from '../dynamicdialogoptions';
2022-09-06 12:03:37 +00:00
declare const plugin: Plugin;
export default plugin;
/**
* Dynamic Dialog components methods.
*
* @group Interfaces
*
*/
2022-09-06 12:03:37 +00:00
export interface DialogServiceMethods {
/**
* Displays the dialog using the dynamic dialog object options.
* @param {*} content - Dynamic component for content template
* @param {DynamicDialogOptions} options - DynamicDialog Object
* @return {@link DynamicDialogInstance}
*/
open: (content: any, options?: DynamicDialogOptions) => DynamicDialogInstance;
}
declare module 'vue/types/vue' {
interface Vue {
$dialog: DialogServiceMethods;
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$dialog: DialogServiceMethods;
}
}