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
587a001d
Commit
587a001d
authored
Aug 12, 2013
by
ggam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Dropdown JS plugin events (fixed #9375)
parent
175a1125
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
javascript.html
javascript.html
+35
-2
No files found.
javascript.html
View file @
587a001d
...
...
@@ -478,9 +478,42 @@ $('.dropdown-toggle').dropdown()
<h3>
Methods
</h3>
<h4>
$().dropdown('toggle')
</h4>
<p>
Toggles the dropdown menu of a given navbar or tabbed navigation.
</p>
</div>
<h3>
Events
</h3>
<div
class=
"bs-table-scrollable"
>
<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.bs.dropdown
</td>
<td>
This event fires immediately when the show instance method is called.
</td>
</tr>
<tr>
<td>
shown.bs.dropdown
</td>
<td>
This event is fired when the dropdown has been made visible to the user (will wait for CSS transitions, to complete).
</td>
</tr>
<tr>
<td>
hide.bs.dropdown
</td>
<td>
This event is fired immediately when the hide instance method has been called.
</td>
</tr>
<tr>
<td>
hidden.bs.dropdown
</td>
<td>
This event is fired when the dropdown has finished being hidden from the user (will wait for CSS transitions, to complete).
</td>
</tr>
</tbody>
</table>
</div>
<!-- ./bs-table-scrollable -->
{% highlight js %}
$('#myDropdown').on('show.bs.dropdown', function () {
// do something…
})
{% endhighlight %}
</div>
<!-- ScrollSpy
================================================== -->
...
...
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