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

45 lines (38 loc) 1.14 kB
import { VNode } from 'vue'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; import { ConfirmationOptions } from '../confirmationoptions'; export interface ConfirmPopupProps { /** * Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance. */ group?: string; } export interface ConfirmPopupSlots { /** * Custom message template. * @param {Object} scope - message slot's params. */ message: (scope: { message: ConfirmationOptions }) => VNode[]; } export declare type ConfirmPopupEmits = {}; declare class ConfirmPopup extends ClassComponent<ConfirmPopupProps, ConfirmPopupSlots, ConfirmPopupEmits> {} declare module '@vue/runtime-core' { interface GlobalComponents { ConfirmPopup: GlobalComponentConstructor<ConfirmPopup>; } } /** * * ConfirmPopup displays a confirmation overlay displayed relatively to its target. * * Helper API: * * - Confirmation API * - ConfirmationService * * Demos: * * - [ConfirmPopup](https://www.primefaces.org/primevue/confirmpopup) * */ export default ConfirmPopup;