@@ -824,6 +826,10 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
...
@@ -824,6 +826,10 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
</div>
</div>
</div><!-- /example -->
</div><!-- /example -->
<divclass="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>
<divclass="bs-callout bs-callout-info">
<divclass="bs-callout bs-callout-info">
<h4>Tooltips in button groups and input groups require special setting</h4>
<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>
<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 () {
...
@@ -990,6 +996,10 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
<h4>Plugin dependency</h4>
<h4>Plugin dependency</h4>
<p>Popovers require the <ahref="#tooltips">tooltip plugin</a> to be included in your version of Bootstrap.</p>
<p>Popovers require the <ahref="#tooltips">tooltip plugin</a> to be included in your version of Bootstrap.</p>
</div>
</div>
<divclass="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>
<divclass="bs-callout bs-callout-info">
<divclass="bs-callout bs-callout-info">
<h4>Popovers in button groups and input groups require special setting</h4>
<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>
<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 () {
...
@@ -1021,6 +1031,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
<divclass="popover bottom">
<divclass="popover bottom">
<divclass="arrow"></div>
<divclass="arrow"></div>
<h3class="popover-title">Popover bottom</h3>
<h3class="popover-title">Popover bottom</h3>
<divclass="popover-content">
<divclass="popover-content">
<p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
<p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
</div>
</div>
...
@@ -1146,9 +1157,6 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
...
@@ -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>
<p>Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.</p>
</div>
</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>
<h3>Methods</h3>
<h4>$().popover(options)</h4>
<h4>$().popover(options)</h4>
<p>Initializes popovers for an element collection.</p>
<p>Initializes popovers for an element collection.</p>