From 1211a8155e9357ddd747f7ecba800e460e72465d Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 11 Nov 2014 21:16:34 -0800 Subject: JS docs: add Options, Methods, Events subsections to nav sidebar --- docs/_includes/js/carousel.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/_includes/js/carousel.html') diff --git a/docs/_includes/js/carousel.html b/docs/_includes/js/carousel.html index c0afcdd5c..02d01bc3c 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: