Currently I used this twitter-bootstrap popover:
<button type="button" class="btn btn-default" style="margin-top:11px; padding-bottom:4px; padding-top:4px;" data-container="body" data-toggle="popover" data-trigger="focus" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Upgrade
The output:
How I can make the background overlay like bootstrap modal? My expected output
I use this jquery to popover
$(function(){
$('[data-toggle="popover"]').popover({
placement : 'bottom'
});
});
2
Answers
Posting some more code would be nice.
This should work. Use some jQuery or AngularJs or any other framework to make the .overlay initially hidden, then to make it visible when needed.
If you need help, comment.
If it helps, +1.
EDIT
This is the new snippet with the full code and behaviour.
rather than binding to a click event, which can be a problem if you have multiple popover on click button triggers. Use bootstrap show and hide methods to display your overlay.
Here is an example below:
http://jsfiddle.net/bakersingh/7j0bxyd1/2/