Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
e55feacf
Commit
e55feacf
authored
Nov 04, 2014
by
Jayanth Koushik
Committed by
Heinrich Fenkart
Nov 04, 2014
Browse files
Options
Browse Files
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
docs/_includes/js/popovers.html
docs/_includes/js/popovers.html
+6
-0
docs/_includes/js/tooltips.html
docs/_includes/js/tooltips.html
+7
-0
No files found.
docs/_includes/js/popovers.html
View file @
e55feacf
...
...
@@ -12,6 +12,12 @@
<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>
<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
class=
"bs-callout bs-callout-warning"
>
<h4>
Popovers in button groups and input groups require special setting
</h4>
...
...
docs/_includes/js/tooltips.html
View file @
e55feacf
...
...
@@ -61,6 +61,13 @@
<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>
<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
class=
"bs-callout bs-callout-warning"
>
<h4>
Tooltips in button groups and input groups require special setting
</h4>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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