UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

21 lines (18 loc) 632 B
import ConfirmationEventBus from 'primevue/confirmationeventbus'; import { PrimeVueConfirmSymbol } from 'primevue/useconfirm'; var ConfirmationService = { install: function install(app) { var ConfirmationService = { require: function require(options) { ConfirmationEventBus.emit('confirm', options); }, close: function close() { ConfirmationEventBus.emit('close'); } }; app.config.globalProperties.$confirm = ConfirmationService; app.provide(PrimeVueConfirmSymbol, ConfirmationService); } }; export { ConfirmationService as default }; //# sourceMappingURL=index.mjs.map