diff options
| author | ggam <[email protected]> | 2013-08-12 17:05:15 +0200 |
|---|---|---|
| committer | ggam <[email protected]> | 2013-08-12 17:05:15 +0200 |
| commit | 587a001dcce9f8dcf223a1f0c7dbefc58efbd6ad (patch) | |
| tree | a7de441dcb8a265a7ae59e88c0721507a0019d36 /javascript.html | |
| parent | 175a112548120500022882d6d2e9bede720f568b (diff) | |
| download | bootstrap-587a001dcce9f8dcf223a1f0c7dbefc58efbd6ad.tar.xz bootstrap-587a001dcce9f8dcf223a1f0c7dbefc58efbd6ad.zip | |
Added Dropdown JS plugin events (fixed #9375)
Diffstat (limited to 'javascript.html')
| -rw-r--r-- | javascript.html | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/javascript.html b/javascript.html index c3a6b0a32..c21842b07 100644 --- a/javascript.html +++ b/javascript.html @@ -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 ================================================== --> |
