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/modal.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/_includes/js/modal.html') diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html index 22924b4e7..4c0d46e9b 100644 --- a/docs/_includes/js/modal.html +++ b/docs/_includes/js/modal.html @@ -306,7 +306,7 @@ $('#exampleModal').on('show.bs.modal', function (event) {

Call a modal with id myModal with a single line of JavaScript:

{% highlight js %}$('#myModal').modal(options){% endhighlight %} -

Options

+

Options

Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-backdrop="".

@@ -353,7 +353,7 @@ $('#exampleModal').on('show.bs.modal', function (event) {
-

Methods

+

Methods

.modal(options)

Activates your content as a modal. Accepts an optional options object.

@@ -375,7 +375,7 @@ $('#myModal').modal({

Manually hides a modal. Returns to the caller before the modal has actually been hidden (i.e. before the hidden.bs.modal event occurs).

{% highlight js %}$('#myModal').modal('hide'){% endhighlight %} -

Events

+

Events

Bootstrap's modal class exposes a few events for hooking into modal functionality.

-- cgit v1.2.3