aboutsummaryrefslogtreecommitdiff
path: root/javascript.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-09-11 16:35:27 -0700
committerMark Otto <[email protected]>2013-09-11 16:35:27 -0700
commitd88e743b417c3e149c9fcb02c8d5580afb8baee0 (patch)
treed8018f676ed81eb5ec5dcbfbb990ca4aa6d300fd /javascript.html
parentfddcadbc21cf35fb584ab02dc0817612da6596a4 (diff)
parent725e2b9ccf66cd54e64ff5d15bf8b2744b5122cd (diff)
downloadbootstrap-d88e743b417c3e149c9fcb02c8d5580afb8baee0.tar.xz
bootstrap-d88e743b417c3e149c9fcb02c8d5580afb8baee0.zip
Merge branch 'master' of github.com:twbs/bootstrap
Conflicts: dist/css/bootstrap.min.css
Diffstat (limited to 'javascript.html')
-rw-r--r--javascript.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/javascript.html b/javascript.html
index bc6d13238..8305632ac 100644
--- a/javascript.html
+++ b/javascript.html
@@ -461,6 +461,8 @@ $('#myModal').on('hidden.bs.modal', function () {
<a id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html">
Dropdown <span class="caret"></span>
</a>
+
+
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
...
</ul>
@@ -824,6 +826,10 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
</div>
</div><!-- /example -->
+ <div class="bs-callout bs-callout-danger">
+ <h4>Opt-in functionality</h4>
+ <p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>.</p>
+ </div>
<div class="bs-callout bs-callout-info">
<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>
@@ -990,6 +996,10 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
<h4>Plugin dependency</h4>
<p>Popovers require the <a href="#tooltips">tooltip plugin</a> to be included in your version of Bootstrap.</p>
</div>
+ <div class="bs-callout bs-callout-danger">
+ <h4>Opt-in functionality</h4>
+ <p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>.</p>
+ </div>
<div class="bs-callout bs-callout-info">
<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>
@@ -1021,6 +1031,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
<div class="popover bottom">
<div class="arrow"></div>
<h3 class="popover-title">Popover bottom</h3>
+
<div class="popover-content">
<p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
</div>
@@ -1146,9 +1157,6 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
<p>Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.</p>
</div>
- <h3>Markup</h3>
- <p>For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.</p>
-
<h3>Methods</h3>
<h4>$().popover(options)</h4>
<p>Initializes popovers for an element collection.</p>