mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Styles imported. Components added
This commit is contained in:
parent
3cb3910561
commit
8264983db4
452 changed files with 55902 additions and 0 deletions
17
components/confirmationservice/ConfirmationService.js
Normal file
17
components/confirmationservice/ConfirmationService.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import ConfirmationEventBus from 'primevue/confirmationeventbus';
|
||||
import {PrimeVueConfirmSymbol} from 'primevue/useconfirm';
|
||||
|
||||
export default {
|
||||
install: (app) => {
|
||||
const ConfirmationService = {
|
||||
require: (options) => {
|
||||
ConfirmationEventBus.emit('confirm', options);
|
||||
},
|
||||
close: () => {
|
||||
ConfirmationEventBus.emit('close');
|
||||
}
|
||||
};
|
||||
app.config.globalProperties.$confirm = ConfirmationService;
|
||||
app.provide(PrimeVueConfirmSymbol, ConfirmationService);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue