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
fd293be5
Commit
fd293be5
authored
11 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
mention tooltip markup in docs per
#10102
parent
c31ec226
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
javascript.html
+12
-0
javascript.html
with
12 additions
and
0 deletions
+12
-0
javascript.html
+
12
-
0
View file @
fd293be5
...
...
@@ -847,9 +847,21 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
</div>
<h2
id=
"tooltips-usage"
>
Usage
</h2>
<p>
The tooltip plugin generates content and markup on demand, and by default places tooltips after their trigger element.
</p>
<p>
Trigger the tooltip via JavaScript:
</p>
{% highlight js %}
$('#example').tooltip(options)
{% endhighlight %}
<h3>
Markup
</h3>
<p>
The generated markup of a tooltip is rather simple, though it does require a position (by default, set to
<code>
top
</code>
by the plugin).
</p>
{% highlight html linenos %}
<div
class=
"tooltip"
>
<div
class=
"tooltip-inner"
>
Tooltip!
</div>
<div
class=
"tooltip-arrow"
></div>
</div>
{% endhighlight %}
<h3>
Options
</h3>
...
...
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