Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
e55feacf
Commit
e55feacf
authored
10 years ago
by
Jayanth Koushik
Committed by
Heinrich Fenkart
10 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add initialization examples to tooltip and popover "Opt-in functionality" callouts
Fixes
#14950
. Closes #15015 by merging it.
parent
0d291e86
4 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/_includes/js/popovers.html
+6
-0
docs/_includes/js/popovers.html
docs/_includes/js/tooltips.html
+7
-0
docs/_includes/js/tooltips.html
with
13 additions
and
0 deletions
+13
-0
docs/_includes/js/popovers.html
+
6
-
0
View file @
e55feacf
...
@@ -12,6 +12,12 @@
...
@@ -12,6 +12,12 @@
<div
class=
"bs-callout bs-callout-danger"
>
<div
class=
"bs-callout bs-callout-danger"
>
<h4>
Opt-in functionality
</h4>
<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>
<p>
For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning
<strong>
you must initialize them yourself
</strong>
.
</p>
<p>
One way to initialize all popovers on a page would be to select them by their
<code>
data-toggle
</code>
attribute:
</p>
{% highlight js %}
$(function () {
$('[data-toggle="popover"]').popover()
})
{% endhighlight %}
</div>
</div>
<div
class=
"bs-callout bs-callout-warning"
>
<div
class=
"bs-callout bs-callout-warning"
>
<h4>
Popovers in button groups and input groups require special setting
</h4>
<h4>
Popovers in button groups and input groups require special setting
</h4>
...
...
This diff is collapsed.
Click to expand it.
docs/_includes/js/tooltips.html
+
7
-
0
View file @
e55feacf
...
@@ -61,6 +61,13 @@
...
@@ -61,6 +61,13 @@
<div
class=
"bs-callout bs-callout-danger"
>
<div
class=
"bs-callout bs-callout-danger"
>
<h4>
Opt-in functionality
</h4>
<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>
<p>
For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning
<strong>
you must initialize them yourself
</strong>
.
</p>
<p>
One way to initialize all tooltips on a page would be to select them by their
<code>
data-toggle
</code>
attribute:
</p>
{% highlight js %}
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
{% endhighlight %}
</div>
</div>
<div
class=
"bs-callout bs-callout-warning"
>
<div
class=
"bs-callout bs-callout-warning"
>
<h4>
Tooltips in button groups and input groups require special setting
</h4>
<h4>
Tooltips in button groups and input groups require special setting
</h4>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets