From ffe018878d2d479ee561b88ab4cbdc2af01809d6 Mon Sep 17 00:00:00 2001 From: Yev Vlasenko Date: Thu, 10 Aug 2017 10:45:05 +0100 Subject: [PATCH] Update README.md --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index c0d2d92..43759c6 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,39 @@ methods: { } ``` +### Dialog + +In version `1.2.8`, the `` componnent was added. + +It is a simplified version of the modal, which has most parameters set by default and is pretty useful for quick prototyping, showing alerts or creating mobile-like modals. + +To start using `` you will have set a configuration: + +``` +Vue.use(VModal, { dialog: true }) +``` + +And include it in your project: + +``` + +``` + +Call it (all params except of “text” are optional): + +``` +this.$modal.show('dialog', { + title: 'Alert!', + text: 'You are too awesome', + buttons: [ + { title: 'Deal with it', handler: () => { alert('Woot!') }, + { title: 'Close' } + ] +}) +``` + +For more examples please take a look at [vue-js-modal.yev.io](http://vue-js-modal.yev.io). + ### SSR Include plugin in your `nuxt.config.js` file: