Default
<a class="btn btn-primary rounded bs-popover mb-3" data-container="body" data-content="Tooltip using ANCHOR tag"> Link </a> <button type="button" class="btn btn-success rounded bs-popover mb-3" data-container="body" data-content="Tooltip using BUTTON tag"> Button </button>
Placement
data-placement="top"
data-placement="right"
data-placement="bottom"
data-placement="left"
<!-- TOP --> <button type="button" class="btn btn-info mr-2 rounded bs-popover mb-4 ml-2" data-container="body" data-placement="top" data-content="Tooltip on top"> Popover on top </button> <!-- RIGHT --> <button type="button" class="btn btn-danger mr-2 rounded bs-popover mb-4 ml-2" data-container="body" data-placement="right" data-content="Tooltip on right"> Popover on right </button> <!-- BOTTOM --> <button type="button" class="btn btn-warning mr-2 rounded bs-popover mb-4 ml-2" data-container="body" data-placement="bottom" data-content="Tooltip on bottom"> Popover on bottom </button> <!-- LEFT --> <button type="button" class="btn btn-secondary mr-2 rounded bs-popover mb-4 ml-2" data-container="body" data-placement="left" data-content="Tooltip on left"> Popover on left </button>
Dismissible popover
<a tabindex="0" class="btn btn-dark rounded bs-popover mb-3" data-container="body" data-trigger="focus" data-placement="left" data-content="Lorem ipsum dolor sit."> Popover on left </a>
Options
data-trigger="hover"
Default
data-delay="1000"
data-animation="false"
<!-- On Hover --> <button type="button" class="btn btn-button-2 bs-popover rounded" data-container="body" data-trigger="hover" data-content="On Hover"> On Hover </button> <!-- On Focus --> <button type="button" class="btn btn-button-3 bs-popover rounded" data-container="body" data-content="On Focus"> On Focus </button> <!-- Delay --> <button type="button" class="btn btn-button-4 bs-popover rounded" data-container="body" data-delay="1000" data-content="Delay 1s"> Delay </button> <!-- Disabled Animation --> <button type="button" class="btn btn-button-5 bs-popover rounded" data-container="body" data-animation="false" data-content="Disabled Animation"> Disabled Animation </button>
Colors
Change popover template html as shown below to add color scheme.
<!-- Primary --> <button type="button" class="btn btn-primary btn-popover-primary mb-2 rounded" data-container="body" data-html="true" data-placement="top"> Primary </button> $('.btn-popover-primary').popover({ template: '<div class="popover popover-primary" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>', title: "Primary", content: "Primary popover" });
© 2021 DesignReset
Coded with
Alan Green
Lead Developer
Todo
Launch New Seo Wordpress Theme has been moved to Completed Board by Alma Clark
New Task is added by Ernest Reeves
Dinner with Kelly Young has been moved to Completed Board by Dale Butler
Event Notifications
New Event has been added on 15 Dec 2020
Collect documents from Kelly at the restaurant tommorrow.
Meeting Event on 12 Nov has been updated to 8 PM
New Event Seminar organised by Design Reset will be held on 25 January
Today's Conference is Cancelled.
Meeting with Project Lead on 01 Jan has been updated to 15 Jan