-1👍
hello friend this is how it works in quasar it really is very simple all you have to do is:
execute this command in you quasar project npm install -S vue-sweetalert2 and then in your quasar page copy and paste like this example that should work
<template>
<a v-on:click="doSomething">Click</a>
</template>
<script>
import Swal from 'sweetalert2'
export default {
methods:{
doSomething()
{
Swal.fire({
title: 'OPPS',
text: "wow",
icon: 'warning',
});
}
}
}
</script>
here is the link where I base myself *https://therichpost.com/vue-3-sweetalert2-popup-working-example/ *
Community Verified icon
Source:stackexchange.com