Vue ZyDialog
A dialog component that provides customizable alert
, confirm
and prompt
for your Vue.js apps.
Features
- Promise based, friendly programming interface
- Global and per call config
- Sequential calls are queued automatically, while it's possible to override the priority manually
- Zero styling dependency, theming (WIP) based on CSS
- Mobile & desktop ready
Requirement
- Vue.js 2.x
Browser Compatibility
- Evergreen browsers
- IE >= 9
Installation
With Yarn
yarn add vue-zydialog
Or with NPM
npm install vue-zydialog --save
Basic Example
Import ZyDialog in your main.js
file
Vue
Use it in your vue
component
...methods: { this }...
If you prefer the async/await
flavour, you can do this
...methods: async { await this this }... ...methods: async { if await this // continue to process else // abort processing }...
Documentation
(Docs WIP)