quasar-utils
Quasar Utils and Helpers
710
10
| Install | |
|---|---|
npm install quasar-utils |
|
| Latest Version: | 0.1.8 |
| License: | MIT |
| Last Updated: | Jul 22, 2018 |
| Links: | GitHub · npm |
Maintainer: vinicius-reis
Quasar Utils
Quasar Utils and Helpers
Setup
yarn add quasar-utils # or npm install quasar-utils --save
import QuasarUtils from 'quasar-utils'
//
Vue.use(QuasarUtils)
Plugins
A collection of helpers to facilitate access to some quasar features
Dialogs
Adds this.$dialogs to components instances
/**
* @param {String} title
* @param {String} message
*
* @returns Promise<void>
*/
.confirm(title, message)
/**
* @param {String} title
* @param {String} message
*
* @returns Promise<void>
*/
.info(title, message)
/**
* @param {String} title
* @param {String} message
* @param {Object} options {type='textbox', model: '', label: ''}
*
* @return {Object} { model: {String} }
*/
.prompt(title, message, { type = 'textbox', label, model = '' })
Exemple:
this.$dialogs.confirm('Alert', 'This action can not be undone')
.then(() => {
// do action
})
.catch (() => {
// don't do action
})
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.1.8 | MIT | |
| 0.1.7 | MIT | |
| 0.1.6 | MIT | |
| 0.1.5 | MIT | |
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.2 | MIT | |
| 0.1.1 | MIT |