From: Chris Rebert Date: Tue, 15 Jul 2014 23:57:25 +0000 (-0700) Subject: popover dismiss-on-next-click example: instead of + Dismissible popover {% highlight html %} - -{% endhighlight %} -{% highlight js %} -$('.popover-dismiss').popover({ - trigger: 'focus' -}) +Dismissible popover {% endhighlight %} -
-

Multiple-line links

-

Sometimes you want to add a popover to a hyperlink that wraps multiple lines. The default behavior of the popover plugin is to center it horizontally and vertically. Add white-space: nowrap; to your anchors to avoid this.

-
-

Usage

Enable popovers via JavaScript:

diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 792fc97790..cfcfa2b503 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -97,9 +97,8 @@ $('.tooltip-test').tooltip() $('.popover-test').popover() - // Default & dismissible popover demos + // Popover demos $('.bs-docs-popover').popover() - $('.bs-docs-popover-dismiss').popover({ trigger: 'focus' }) // Button state demo $('#loading-example-btn').click(function () {