This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @function mostraLoading Show loading and execute any function. | |
* @param {Object} loading referência a variavel de loading que será utilizada | |
* @param {Function} anyFunction function to execute while loading shows. | |
*/ | |
function mostraLoading(loading, anyFunction, ...anyParam) { | |
loading.show(); | |
setTimeout(function () { | |
anyFunction(...anyParam); | |
loading.hide(); |
NewerOlder