Jan 3, 2016
0
Level 1
sweetalert - html content
Hello guys, i want to display html content to the sweetalert js function but i doesn't work because there are whitespaces in the html. Do you know a blade or php function to remove them?
Or a better method to display html content of a blade template in sweetalerts popup?
Thanks!
swal({
title: 'Check-In',
text: '@include("team.partials.popup-portrait")',
type: "warning",
html: true,
showCancelButton: true,
showLoaderOnConfirm: true }, function() {
console.log('here');
}
);
Please or to participate in this conversation.