unclean SPARC

This commit is contained in:
STEINNI
2025-08-27 07:03:09 +00:00
commit f308460931
430 changed files with 54426 additions and 0 deletions
+27
View File
@@ -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...
}