From bf875d9e360209503932e0ecbe5804b44961b34d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 11 Jun 2012 22:19:25 -0700 Subject: cleanup options display in all sections, rearrange typeahead section --- docs/javascript.html | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index e362985ab..e424cf1aa 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -261,6 +261,7 @@
$('#myModal').modal(options)

Options

+

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

@@ -477,6 +478,9 @@ $('#myModal').on('hidden', function () {

Call the dropdowns via javascript:

$('.dropdown-toggle').dropdown()
+

Options

+

None

+

Methods

$().dropdown()

A programatic api for activating menus for a given navbar or tabbed navigation.

@@ -560,6 +564,7 @@ $('[data-spy="scroll"]').each(function () {

Options

+

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

@@ -745,6 +750,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
$('#example').tooltip(options)

Options

+

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

@@ -856,6 +862,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
$('#example').popover(options)

Options

+

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

@@ -927,6 +934,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Markup

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

+

Methods

$().popover(options)

Initializes popovers for an element collection.

@@ -992,6 +1000,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Closes an alert.

$(".alert").alert('close')
+

Events

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

@@ -1092,6 +1101,9 @@ $('#my-alert').bind('closed', function () { </div> +

Options

+

None

+

Methods

$().button('toggle')

Toggles push state. Gives the button the appearance that it has been activated.

@@ -1184,6 +1196,7 @@ $('#my-alert').bind('closed', function () {
$(".collapse").collapse()

Options

+

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

@@ -1328,7 +1341,9 @@ $('#myCollapsible').on('hidden', function () {

Usage

Call via javascript:

$('.carousel').carousel()
+

Options

+

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

@@ -1420,23 +1435,31 @@ $('.carousel').carousel({

Typeahead bootstrap-typeahead.js

-

About

-

A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.

Example

-

Start typing in the field below to show the typeahead results.

+

A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.

+
+<input type="text" data-provide="typeahead">
+

Usage

-

Call the typeahead via javascript:

+ +

Via data attributes

+

Add data attributes to register an element with typeahead functionality as shown in the example above.

+ +

Via javascript

+

Call the typeahead manually with:

$('.typeahead').typeahead()
+

Options

+

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

@@ -1480,11 +1503,6 @@ $('.carousel').carousel({
-

Markup

-

Add data attributes to register an element with typeahead functionality.

-
-<input type="text" data-provide="typeahead">
-

Methods

.typeahead(options)

Initializes an input with a typeahead.

-- cgit v1.2.3