From 5dd47f11967f25aa8f5fe4ad25db807c5b33ccca Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 11 Jun 2012 20:33:00 -0700 Subject: keep tables at 13px in docs for now, clean up some modals js docs stuff --- docs/javascript.html | 49 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 11 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index 90079292b..b83612d52 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -106,10 +106,13 @@ +

Individual or compiled

If you have downloaded the latest version of Bootstrap, both bootstrap.js and bootstrap.min.js contain all of these plugins.

-

Data attributea

+ +

Data attributes

...

+

Programmatic API

...

@@ -126,8 +129,16 @@

Transitions bootstrap-transition.js

About transitions

-

For simple transition effects, include bootstrap-transition.js once to slide in modals or fade out alerts.

-

* Required for animation in plugins

+

For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.

+

Use cases

+

A few examples of the transition plugin:

+ + @@ -139,11 +150,11 @@

Modals bootstrap-modal.js

-

About modals

+ +

About modals

A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.

-

Static example

-

Below is a statically rendered modal.

+

Static example

+
+<div class="modal hide fade">
+  <div class="modal-header">
+    <button type="button" class="close" data-dismiss="modal">&times;</button>
+    <h3>Modal header</h3>
+  </div>
+  <div class="modal-body">
+    <p>One fine body…</p>
+  </div>
+  <div class="modal-footer">
+    <a href="#" class="btn">Close</a>
+    <a href="#" class="btn btn-primary">Save changes</a>
+  </div>
+</div>
+
-

Live demo

+

Live demo

Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.

- -
Launch demo modal
-
-

Using bootstrap-modal

+
+ + +

Usage

Call the modal via javascript:

$('#myModal').modal(options)
+

Options

-- cgit v1.2.3