@nextgis/vuetify-notice
v0.0.1
Published
component to display quick message and dialog to a user
Downloads
319
Keywords
Readme
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',
});