0.0.1 • Published 4 years ago

@nextgis/vuetify-notice v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

vuetify-notice

Component to display quick message and dialog to a user from vuetify app.

Based on vuetify-confirm

Installation

npm i @nextgis/vuetify-notice
import { NoticeSetup, NoticeSetupOptions } from '@nextgis/vuetify-notice';
import Vue from 'vue';

import vuetify from './plugins/vuetify';

const noticeOptions = {
  vuetify,
};

Vue.use(NoticeSetup, noticeOptions);

const app = new Vue({
  vuetify,
  el: '#app',
});
import { confirmDialog, notice } from '@nextgis/vuetify-notice';

confirmDialog('Question').then((answer) => {
  if (answer) {
    this.doSomething();
  }
});

notice(`message`, {
  color: 'error',
});