From: Chris Rebert Date: Wed, 12 Nov 2014 05:16:34 +0000 (-0800) Subject: JS docs: add Options, Methods, Events subsections to nav sidebar X-Git-Tag: v3.3.2~77^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15094%2Fhead;p=thirdparty%2Fbootstrap.git JS docs: add Options, Methods, Events subsections to nav sidebar --- diff --git a/docs/_includes/js/affix.html b/docs/_includes/js/affix.html index 56168d6a89..f32b376de5 100644 --- a/docs/_includes/js/affix.html +++ b/docs/_includes/js/affix.html @@ -42,7 +42,7 @@ $('#myAffix').affix({ {% endhighlight %} -

Options

+

Options

Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-offset-top="200".

@@ -74,7 +74,7 @@ $('#myAffix').affix({
-

Events

+

Events

Bootstrap's affix plugin exposes a few events for hooking into affix functionality.

diff --git a/docs/_includes/js/alerts.html b/docs/_includes/js/alerts.html index 7f539092f6..f2e70fa017 100644 --- a/docs/_includes/js/alerts.html +++ b/docs/_includes/js/alerts.html @@ -35,7 +35,7 @@

To have your alerts use animation when closing, make sure they have the .fade and .in classes already applied to them.

-

Methods

+

Methods

$().alert()

Makes an alert listen for click events on descendant elements which have the data-dismiss="alert" attribute. (Not necessary when using the data-api's auto-initialization.)

@@ -44,7 +44,7 @@

Closes an alert by removing it from the DOM. If the .fade and .in classes are present on the element, the alert will fade out before it is removed.

-

Events

+

Events

Bootstrap's alert plugin exposes a few events for hooking into alert functionality.

diff --git a/docs/_includes/js/carousel.html b/docs/_includes/js/carousel.html index c0afcdd5c7..02d01bc3c0 100644 --- a/docs/_includes/js/carousel.html +++ b/docs/_includes/js/carousel.html @@ -152,7 +152,7 @@ $('.carousel').carousel() {% endhighlight %} -

Options

+

Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-interval="".

@@ -193,7 +193,7 @@ $('.carousel').carousel()
-

Methods

+

.carousel(options)

Initializes the carousel with an optional options object and starts cycling through items.

@@ -219,7 +219,7 @@ $('.carousel').carousel({

.carousel('next')

Cycles to the next item.

-

Events

+

Bootstrap's carousel class exposes two events for hooking into carousel functionality.

Both events have the following additional properties: