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
7936f147
Commit
7936f147
authored
Jul 10, 2013
by
Julian Thilo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #8428 - Document tooltip/popover events
parent
930c75e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
javascript.html
javascript.html
+66
-0
No files found.
javascript.html
View file @
7936f147
...
@@ -867,6 +867,39 @@ $('#example').tooltip(options)
...
@@ -867,6 +867,39 @@ $('#example').tooltip(options)
<h4>
.tooltip('destroy')
</h4>
<h4>
.tooltip('destroy')
</h4>
<p>
Hides and destroys an element's tooltip.
</p>
<p>
Hides and destroys an element's tooltip.
</p>
{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}
{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}
<h3>
Events
</h3>
<table
class=
"table table-bordered table-striped"
>
<thead>
<tr>
<th
style=
"width: 150px;"
>
Event Type
</th>
<th>
Description
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
show
</td>
<td>
This event fires immediately when the
<code>
show
</code>
instance method is called.
</td>
</tr>
<tr>
<td>
shown
</td>
<td>
This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).
</td>
</tr>
<tr>
<td>
hide
</td>
<td>
This event is fired immediately when the
<code>
hide
</code>
instance method has been called.
</td>
</tr>
<tr>
<td>
hidden
</td>
<td>
This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).
</td>
</tr>
</tbody>
</table>
{% highlight js %}
$('#myTooltip').on('hidden.bs.tooltip', function () {
// do something…
})
{% endhighlight %}
</section>
</section>
...
@@ -1052,6 +1085,39 @@ $('#example').tooltip(options)
...
@@ -1052,6 +1085,39 @@ $('#example').tooltip(options)
<h4>
.popover('destroy')
</h4>
<h4>
.popover('destroy')
</h4>
<p>
Hides and destroys an element's popover.
</p>
<p>
Hides and destroys an element's popover.
</p>
{% highlight js %}$('#element').popover('destroy'){% endhighlight %}
{% highlight js %}$('#element').popover('destroy'){% endhighlight %}
<h3>
Events
</h3>
<table
class=
"table table-bordered table-striped"
>
<thead>
<tr>
<th
style=
"width: 150px;"
>
Event Type
</th>
<th>
Description
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
show
</td>
<td>
This event fires immediately when the
<code>
show
</code>
instance method is called.
</td>
</tr>
<tr>
<td>
shown
</td>
<td>
This event is fired when the popover has been made visible to the user (will wait for CSS transitions to complete).
</td>
</tr>
<tr>
<td>
hide
</td>
<td>
This event is fired immediately when the
<code>
hide
</code>
instance method has been called.
</td>
</tr>
<tr>
<td>
hidden
</td>
<td>
This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).
</td>
</tr>
</tbody>
</table>
{% highlight js %}
$('#myPopover').on('hidden.bs.popover', function () {
// do something…
})
{% endhighlight %}
</section>
</section>
...
...
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