diff --git a/docs/javascript.html b/docs/javascript.html index 45a7a2fe8a..8a9a203e74 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -112,7 +112,7 @@
Bring some of Bootstrap's primary components to life with custom jQuery plugins. We encourage you to extend and modify them to fit your specific development needs.
-File | @@ -186,7 +186,7 @@
---|
Name | @@ -208,16 +208,11 @@true | Closes the modal when escape key is pressed | |
---|---|---|---|
show | -boolean | -true | -Opens modal on class initialization | -
You can activate modals on your page easily without having to write a single line of javascript. Just set data-toggle="modal"
on a controller element with a data-target="#foo"
or href="#foo"
which corresponds to a modal element id, and when clicked, it will launch your modal. To add modal options, just include them as additoinal data attributes.
You can activate modals on your page easily without having to write a single line of javascript. Just set data-toggle="modal"
on a controller element with a data-target="#foo"
or href="#foo"
which corresponds to a modal element id, and when clicked, it will launch your modal.
Also, to add options to your modal instance, just include them as additional data attributes on either the control element or the modal markup itself.
<a class="btn" data-toggle="modal" href="#myModal" >Launch Modal</a>@@ -240,7 +235,7 @@ $('#myModal').modal({
$('#myModal').modal('hide')
Bootstrap's modal class exposes a few events for hooking into modal functionality.
-Event | @@ -311,12 +306,14 @@ $('#myModal').on('hidden', function () {
---|