diff options
| author | Mark Otto <[email protected]> | 2013-08-23 13:46:40 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-23 13:46:40 -0700 |
| commit | 7b0d035dd4cea21bcbd01c3d16764a90e9ce009b (patch) | |
| tree | 28a45889f83b2fb7488aae78c8e2da3453799666 /javascript.html | |
| parent | acb338766ebe734296e412a9e1c46a5222ac1f13 (diff) | |
| parent | ec7fa0a25488e2887db9666ea8014777a743ac55 (diff) | |
| download | bootstrap-7b0d035dd4cea21bcbd01c3d16764a90e9ce009b.tar.xz bootstrap-7b0d035dd4cea21bcbd01c3d16764a90e9ce009b.zip | |
Merge branch 'master' of github.com:twbs/bootstrap
Diffstat (limited to 'javascript.html')
| -rw-r--r-- | javascript.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/javascript.html b/javascript.html index e397efc40..8da1cb590 100644 --- a/javascript.html +++ b/javascript.html @@ -273,7 +273,7 @@ $('#myModal').on('show.bs.modal', function (e) { <td>remote</td> <td>path</td> <td>false</td> - <td><p>If a remote URL is provided, content will be loaded via jQuery's <code>load</code> method and injected into the root of the modal element. If you're using the data api, you may alternatively use the <code>href</code> attribute to specify the remote source. An example of this is shown below:</p> + <td><p>If a remote URL is provided, content will be loaded via jQuery's <code>load</code> method and injected into the root of the modal element. If you're using the data-api, you may alternatively use the <code>href</code> attribute to specify the remote source. An example of this is shown below:</p> {% highlight html %} <a data-toggle="modal" href="remote.html" data-target="#modal">Click me</a> {% endhighlight %} @@ -804,7 +804,10 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { <h4>Tooltips in button groups and input groups require special setting</h4> <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 wrapper elements</h4> + <p>To add a tooltip to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code><div></code> or <code><span></code>, and apply the tooltip to that element instead.</p> + </div> <h2 id="tooltips-usage">Usage</h2> <p>Trigger the tooltip via JavaScript:</p> @@ -967,6 +970,10 @@ $('#myTooltip').on('hidden.bs.tooltip', function () { <h4>Popovers in button groups and input groups require special setting</h4> <p>When using popovers 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 popover is triggered).</p> </div> + <div class="bs-callout bs-callout-info"> + <h4>Popovers on disabled elements require wrapper elements</h4> + <p>To add a popover to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code><div></code> or <code><span></code>, and apply the popover to that element instead.</p> + </div> <h3>Static popover</h3> <p>Four options are available: top, right, bottom, and left aligned.</p> |
