1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-01 07:46:47 +02:00

JS docs: add Options, Methods, Events subsections to nav sidebar

This commit is contained in:
Chris Rebert
2014-11-11 21:16:34 -08:00
parent ff386147ce
commit 1211a8155e
11 changed files with 51 additions and 26 deletions

View File

@@ -93,7 +93,7 @@ $('body').scrollspy({ target: '.navbar-example' })
{% endhighlight %}
<h3>Methods</h3>
<h3 id="scrollspy-methods">Methods</h3>
<h4>.scrollspy('refresh')</h4>
<p>When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:</p>
{% highlight js %}
@@ -103,7 +103,7 @@ $('[data-spy="scroll"]').each(function () {
{% endhighlight %}
<h3>Options</h3>
<h3 id="scrollspy-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-offset=""</code>.</p>
<div class="table-responsive">
<table class="table table-bordered table-striped">
@@ -126,7 +126,7 @@ $('[data-spy="scroll"]').each(function () {
</table>
</div><!-- ./bs-table-responsive -->
<h3>Events</h3>
<h3 id="scrollspy-events">Events</h3>
<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>