mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
JS docs: add Options, Methods, Events subsections to nav sidebar
This commit is contained in:
@@ -306,7 +306,7 @@ $('#exampleModal').on('show.bs.modal', function (event) {
|
||||
<p>Call a modal with id <code>myModal</code> with a single line of JavaScript:</p>
|
||||
{% highlight js %}$('#myModal').modal(options){% endhighlight %}
|
||||
|
||||
<h3>Options</h3>
|
||||
<h3 id="modals-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-backdrop=""</code>.</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped">
|
||||
@@ -353,7 +353,7 @@ $('#exampleModal').on('show.bs.modal', function (event) {
|
||||
</table>
|
||||
</div><!-- /.table-responsive -->
|
||||
|
||||
<h3>Methods</h3>
|
||||
<h3 id="modals-methods">Methods</h3>
|
||||
|
||||
<h4>.modal(options)</h4>
|
||||
<p>Activates your content as a modal. Accepts an optional options <code>object</code>.</p>
|
||||
@@ -375,7 +375,7 @@ $('#myModal').modal({
|
||||
<p>Manually hides a modal. <strong>Returns to the caller before the modal has actually been hidden</strong> (i.e. before the <code>hidden.bs.modal</code> event occurs).</p>
|
||||
{% highlight js %}$('#myModal').modal('hide'){% endhighlight %}
|
||||
|
||||
<h3>Events</h3>
|
||||
<h3 id="modals-events">Events</h3>
|
||||
<p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped">
|
||||
|
||||
Reference in New Issue
Block a user