2023-03-06 06:55:17 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/dynamicdialog/)
|
2023-03-07 13:50:08 +00:00
|
|
|
* @module dialogservice-usedialog
|
2023-03-06 06:55:17 +00:00
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
import { Plugin } from 'vue';
|
2023-03-06 06:55:17 +00:00
|
|
|
import { DynamicDialogInstance, DynamicDialogOptions } from '../dynamicdialogoptions';
|
2022-09-06 12:03:37 +00:00
|
|
|
|
|
|
|
declare const plugin: Plugin;
|
|
|
|
export default plugin;
|
|
|
|
|
2023-03-06 06:55:17 +00:00
|
|
|
/**
|
|
|
|
* Dynamic Dialog components methods.
|
|
|
|
*
|
2023-03-07 13:37:45 +00:00
|
|
|
* @group Model
|
2023-03-06 06:55:17 +00:00
|
|
|
*
|
|
|
|
*/
|
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}
|
|
|
|
*/
|
2023-03-07 13:37:45 +00:00
|
|
|
open(content: any, options?: DynamicDialogOptions): DynamicDialogInstance;
|
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 {
|
|
|
|
$dialog: DialogServiceMethods;
|
|
|
|
}
|
|
|
|
}
|