bootstrap 4 popover dynamic content code example

Example 1: bootstrap popover style width

.popover{
    max-width: 100%; 
    /* Max Width of the popover (depending on the container!) */
}

Example 2: popover bootstrap 4

<script>
$(document).ready(function(){
  $('[data-toggle="popover"]').popover({
  	  html: true
  }); 
});
</script>

Example 3: bootstrap popover

<button type="button" class="btn btn-lg btn-danger" data-toggle="popover" title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>