unclean SPARC
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
if(!app.helpers) app.helpers = {}
|
||||
/**
|
||||
* @class mixing addind methods to your view
|
||||
* @category MyEic
|
||||
* @subcategory Helpers
|
||||
* @todo intergate to MeicView ?
|
||||
* @todo extract template path to config ?
|
||||
*/
|
||||
app.helpers.basicDialogs = {
|
||||
/**
|
||||
*
|
||||
* @param {*} options
|
||||
* @param {*} options.message
|
||||
* @param {*} [options.severity]
|
||||
* @param {*} [options.muted]
|
||||
* @param {*} [options.okLabel]
|
||||
* @param {*} [options.cancelLabel]
|
||||
* @returns {*}
|
||||
*/
|
||||
async confirmDialog(options) {
|
||||
options.severity = options.severity ? options.severity : 'danger'
|
||||
options.muted = options.muted ? 'muted' : ''
|
||||
let result = await this.openDialog(await this.loadContent('templates/dialogs/ConfirmDialog', options, options));
|
||||
return(result)
|
||||
},
|
||||
// other basic dialogs here...
|
||||
}
|
||||
Reference in New Issue
Block a user