avil13 / vue-sweetalert2

A convenient wrapper for sweetalert2.
https://avil13.github.io/vue-sweetalert2/
656 stars 75 forks source link

dynamic HTML and Vue directives in Sweet Alert 2 #89

Closed ayophanz closed 4 years ago

ayophanz commented 4 years ago

I also want to know

Is possible component inside swal html?

.fire({
                title: '<h4><strong>Exclude optional amenities <br /> to specific room</strong></h4>',
                type: 'info',
                html:'<div><exclude-optional-amen :rooms_no="this.form.rooms_no" :addOnOptionalAmen="this.form.addOnOptionalAmen" :currency="this.currency"></exclude-optional-amen></div>',
            })
avil13 commented 4 years ago

Not now. I do not find a way to do this without turning the library into a huge monster. Look here #59