Promise-based Alert and Confirm Modal for Vue.js

notivuecation is a promise-based alert and confirmation dialog component for Vue.js.

vue dialog modal, vue promise based dialog, vue modal dialog example, vue3 promise dialog, vue promise modal, vue confirmation modal

vue-dialog-modal

How to use it:

Install

npm install notivuecation

Usage

import Vue from 'vue';
import notivuecation from 'notivuecation';

Vue.use(notivuecation);
<notivuecation />
this.$alert('You are the 1 millionth visitor!').then(claimPrize);

this.$confirm('Are you sure?').then(result => {
  // result is true/false
});

If you want to use these methods from outside a component, you can also import them:

import { confirm, alert, notify } from 'notivuecation';

The plugin adds three methods to the Vue instance, these can be called from any Vue component:

  • $notify
  • $confirm
  • $alert

promise-based dialog modal for vue js, notivuecation plugin/github


See Demo And Download

Developer Name: petervdn

Official Website: Click Here

Share

You may also like...

Leave a Reply

Your email address will not be published.