From: Julian Thilo Date: Sat, 31 Aug 2013 18:43:57 +0000 (+0200) Subject: Fix #10324: Add opt-in note to tooltip docs X-Git-Tag: v3.0.3~14^2~15^2~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95c796d61e40e7c12aef75ba8dff4bf211ccbb8f;p=thirdparty%2Fbootstrap.git Fix #10324: Add opt-in note to tooltip docs * Re-added a note (now callout) about need to opt in to tooltip docs * Converted same note in popover section to callout --- diff --git a/javascript.html b/javascript.html index 48aaf2cd9f..e9f14ee86f 100644 --- a/javascript.html +++ b/javascript.html @@ -461,6 +461,8 @@ $('#myModal').on('hidden.bs.modal', function () { Dropdown + + @@ -819,6 +821,10 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { +
+

Opt-in functionality

+

For performance reasons, the Tooltip and Popover data-apis are opt-in. If you would like to use them just specify a selector option.

+

Tooltips in button groups and input groups require special setting

When using tooltips on elements within a .btn-group or an .input-group, you'll have to specify the option container: 'body' (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip is triggered).

@@ -985,6 +991,10 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {

Plugin dependency

Popovers require the tooltip plugin to be included in your version of Bootstrap.

+
+

Opt-in functionality

+

For performance reasons, the Tooltip and Popover data-apis are opt-in. If you would like to use them just specify a selector option.

+

Popovers in button groups and input groups require special setting

When using popovers on elements within a .btn-group or an .input-group, you'll have to specify the option container: 'body' (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the popover is triggered).

@@ -1016,6 +1026,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {

Popover bottom

+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

@@ -1141,9 +1152,6 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {

Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.

-

Markup

-

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

-

Methods

$().popover(options)

Initializes popovers for an element collection.