mirror of
https://github.com/twbs/bootstrap.git
synced 2025-10-03 16:51:54 +02:00
JS docs: add Options, Methods, Events subsections to nav sidebar
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
$('.carousel').carousel()
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Options</h3>
|
||||
<h3 id="carousel-options">Options</h3>
|
||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped">
|
||||
@@ -193,7 +193,7 @@ $('.carousel').carousel()
|
||||
</table>
|
||||
</div><!-- /.table-responsive -->
|
||||
|
||||
<h3>Methods</h3>
|
||||
<h3 id="carousel-methods">Methods</h3>
|
||||
|
||||
<h4>.carousel(options)</h4>
|
||||
<p>Initializes the carousel with an optional options <code>object</code> and starts cycling through items.</p>
|
||||
@@ -219,7 +219,7 @@ $('.carousel').carousel({
|
||||
<h4>.carousel('next')</h4>
|
||||
<p>Cycles to the next item.</p>
|
||||
|
||||
<h3>Events</h3>
|
||||
<h3 id="carousel-events">Events</h3>
|
||||
<p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
|
||||
<p>Both events have the following additional properties:</p>
|
||||
<ul>
|
||||
|
Reference in New Issue
Block a user