From: bcarrell Date: Fri, 23 Aug 2013 16:10:52 +0000 (-0400) Subject: docs: add explanation for adding tooltips to disabled elements, closes #10049 X-Git-Tag: v3.0.1~152^2~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10081%2Fhead;p=thirdparty%2Fbootstrap.git docs: add explanation for adding tooltips to disabled elements, closes #10049 --- diff --git a/javascript.html b/javascript.html index e397efc40d..07d528a170 100644 --- a/javascript.html +++ b/javascript.html @@ -805,6 +805,10 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {

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).

+
+

Tooltips on disabled elements require placing the tooltip on an outer element instead

+

If you'd like to add a tooltip to a disabled element, place the element inside of a <div> or <span> and apply the tooltip to that element instead.

+

Usage

Trigger the tooltip via JavaScript: