]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: add explanation for adding tooltips to disabled elements, closes #10049 10081/head
authorbcarrell <brandoncarrell@gmail.com>
Fri, 23 Aug 2013 16:10:52 +0000 (12:10 -0400)
committerbcarrell <brandoncarrell@gmail.com>
Fri, 23 Aug 2013 16:10:52 +0000 (12:10 -0400)
javascript.html

index e397efc40d9d89db1cc2c3906e8b1d153d0d5587..07d528a170837bc0a219051b41e77ae59bcd2408 100644 (file)
@@ -805,6 +805,10 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
       <p>When using tooltips on elements within a <code>.btn-group</code> or an <code>.input-group</code>, you'll have to specify the option <code>container: 'body'</code> (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip is triggered).</p>
     </div>
 
+    <div class="bs-callout bs-callout-info">
+      <h4>Tooltips on disabled elements require placing the tooltip on an outer element instead</h4>
+      <p>If you'd like to add a tooltip to a <code>disabled</code> element, place the element inside of a <code>&lt;div&gt;</code> or <code>&lt;span&gt;</code> and apply the tooltip to that element instead.</p>
+    </div>
 
     <h2 id="tooltips-usage">Usage</h2>
     <p>Trigger the tooltip via JavaScript:</p>