mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Styles imported. Components added
This commit is contained in:
parent
3cb3910561
commit
8264983db4
452 changed files with 55902 additions and 0 deletions
12
components/useconfirm/UseConfirm.js
Normal file
12
components/useconfirm/UseConfirm.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { inject } from 'vue';
|
||||
|
||||
export const PrimeVueConfirmSymbol = Symbol();
|
||||
|
||||
export function useConfirm() {
|
||||
const PrimeVueConfirm = inject(PrimeVueConfirmSymbol);
|
||||
if (!PrimeVueConfirm) {
|
||||
throw new Error('No PrimeVue Confirmation provided!');
|
||||
}
|
||||
|
||||
return PrimeVueConfirm;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue