Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

custom html in swal2 vue

<div id="swalHTML" style='display: none'>
  <my-template name="hello"></my-template>
</div>

let el = document.getElementById('swalHTML');
swal({
  html: el.innerHTML
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #custom #html #vue
ADD COMMENT
Topic
Name
7+4 =