UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

28 lines (23 loc) 789 B
import { Plugin } from 'vue'; import { DynamicDialogOptions, DynamicDialogInstance } from '../dynamicdialogoptions'; declare const plugin: Plugin; export default plugin; 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; } }