HI WELCOME TO SIRIS

Bootstrap popover

In this we will discuss the Bootstrap popover plugin. 

Bootstrap tutorial for beginners

Bootstrap popover is an extension to tooltip. Working with popover is very similar to working with tooltip. The difference is popover has an option to display both a title and content, while tooltip only has an option to display a title.

As you can see from the example below, creating a popover is very similar to creating a tooltip. 
bootstrap popover examples 

HTML
<button class="btn btn-primary" id="btnPopover" title="Popover Title"
        data-content="Popover content. Popover content. Popover content."
        data-toggle="popover">
    Popover Example
</button>

jQuery
$(document).ready(function () {
    $('#btnPopover').popover();
});

At the moment to show or hide the popover we have to click on the button. If you want the popover to close when you click anywhere outside the button, use data-trigger="focus"

<button class="btn btn-primary" id="btnPopover" title="Popover Title"
        data-content="Popover content. Popover content. Popover content."
        data-toggle="popover"
        data-trigger="focus">
    Popover Example
</button>

To show or hide the popover on hover use data-trigger="hover"
<button class="btn btn-primary" id="btnPopover" title="Popover Title"
        data-content="Popover content. Popover content. Popover content."
        data-toggle="popover"
        data-trigger="hover">
    Popover Example
</button>

To display an image in popover 
bootstrap popover image example 

<button class="btn btn-primary" id="btnPopover" title="Penguins"
        data-content="<img class='img-responsive' src='Images/Penguins.jpg'>"
        data-toggle="popover"
        data-html="true"
        data-placement="bottom"
        data-trigger="hover">
    Penguins
</button>

As you can see from the table below, majority of the options, methods and events of the popover plugin are very similar to tooltip plugin.  
popover optionstooltip options
placementplacement
titletitle
triggertrigger
animationanimation
delaydelay
htmlhtml
popover methodstooltip methods
popover('show')tooltip('show')
popover('hide')tooltip('hide')
popover('toggle')tooltip('toggle')
popover eventstooltip events
show.bs.popovershow.bs.tooltip
shown.bs.popovershown.bs.tooltip
hide.bs.popoverhide.bs.tooltip
hidden.bs.popoverhidden.bs.tooltip