From 587a001dcce9f8dcf223a1f0c7dbefc58efbd6ad Mon Sep 17 00:00:00 2001 From: ggam Date: Mon, 12 Aug 2013 17:05:15 +0200 Subject: Added Dropdown JS plugin events (fixed #9375) --- javascript.html | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'javascript.html') 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()

Methods

$().dropdown('toggle')

Toggles the dropdown menu of a given navbar or tabbed navigation.

- - +

Events

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Event TypeDescription
show.bs.dropdownThis event fires immediately when the show instance method is called.
shown.bs.dropdownThis event is fired when the dropdown has been made visible to the user (will wait for CSS transitions, to complete).
hide.bs.dropdownThis event is fired immediately when the hide instance method has been called.
hidden.bs.dropdownThis event is fired when the dropdown has finished being hidden from the user (will wait for CSS transitions, to complete).
+
+{% highlight js %} +$('#myDropdown').on('show.bs.dropdown', function () { + // do something… +}) +{% endhighlight %} + -- cgit v1.2.3 From 8dd45053ce70227f9a18531f7a110cc05c41c15e Mon Sep 17 00:00:00 2001 From: Bas Bosman Date: Mon, 12 Aug 2013 17:55:25 +0200 Subject: Add missing aria-hidden attribs to close buttons --- javascript.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'javascript.html') diff --git a/javascript.html b/javascript.html index c3a6b0a32..cb33f5c42 100644 --- a/javascript.html +++ b/javascript.html @@ -1144,14 +1144,14 @@ $('#myPopover').on('hidden.bs.popover', function () {

Add dismiss functionality to all alert messages with this plugin.

- + Holy guacamole! Best check yo self, you're not looking too good.
- +

Oh snap! You got an error!

Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

@@ -1167,7 +1167,7 @@ $('#myPopover').on('hidden.bs.popover', function () {

Markup

Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.

- {% highlight html %}×{% endhighlight %} + {% highlight html %}{% endhighlight %}

Methods

-- cgit v1.2.3