You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to show 3 buttons using the following example:
this.$fire({
title: 'Do you want to save the changes?',
showDenyButton: true,
showCancelButton: true,
confirmButtonText: `Save`,
denyButtonText: `Don't save`,
});
However I only get two buttons.
The text was updated successfully, but these errors were encountered:
NOTE: If you use the global options, be aware, that they will be ignored when using the $fire method.
I've solved this by overwriting the $fire method like this:
import Vue from "vue"
import Swal from "sweetalert2";
import VueSimpleAlert from "vue-simple-alert";
Vue.use(VueSimpleAlert, {
"confirmButtonColor" : "rgb(255,128,0)",
"cancelButtonColor" : "blue",
"denyButtonColor" : "#00bb00"
});
Vue.prototype.$fire = function(options) {
var mixedOptions = Object.assign(Object.assign({}, VueSimpleAlert.globalOptions), options);
return Swal.fire(mixedOptions);
};
I'm trying to show 3 buttons using the following example:
However I only get two buttons.
The text was updated successfully, but these errors were encountered: