From 1211a8155e9357ddd747f7ecba800e460e72465d Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 11 Nov 2014 21:16:34 -0800 Subject: [PATCH] JS docs: add Options, Methods, Events subsections to nav sidebar --- docs/_includes/js/affix.html | 4 ++-- docs/_includes/js/alerts.html | 4 ++-- docs/_includes/js/carousel.html | 6 +++--- docs/_includes/js/collapse.html | 6 +++--- docs/_includes/js/dropdowns.html | 6 +++--- docs/_includes/js/modal.html | 6 +++--- docs/_includes/js/popovers.html | 4 ++-- docs/_includes/js/scrollspy.html | 6 +++--- docs/_includes/js/tabs.html | 4 ++-- docs/_includes/js/tooltips.html | 6 +++--- docs/_includes/nav/javascript.html | 25 +++++++++++++++++++++++++ 11 files changed, 51 insertions(+), 26 deletions(-) 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: