diff --git a/docs/javascript.html b/docs/javascript.html index 53130bd16f..0bcbe597cb 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -146,7 +146,7 @@ -
Notice If you want your modal to animate in and out, just add a .fade
class to the .modal
element (refer to the demo to see this in action).
.fade
class to the .modal
element (refer to the demo to see this in action) and include bootstrap-transition.js.
+ Activates your content as a modal. Accepts an optional options object
.
$('.dropdown-toggle').dropdown()
To quickly add dropdown functionality to any element just add data-toggle="dropdown"
and any valid bootstrap dropdown will automatically be activated.
Notice For added control and flexibility, optionally specify a data-target="#fat"
or href="#fat"
- this allows you to target specific dropdowns.
data-target="#fat"
or href="#fat"
.
+ <ul class="nav pills"> @@ -533,7 +538,10 @@ $('#myModal').on('hidden', function () {Markup
To easily add scrollspy behavior to your topbar navigation, just add
data-spy="scroll"
to the element you want to spy on (most typically this would be the body).<body data-spy="scroll" >...</body>-Notice Navbar anchor tags must have resolvable id targets. For example, a
+<a href="#home">home</a>
must correspond to something in the dom like<div id="home"></div>
.+ Heads up! + Navbar links must have resolvable id targets. For example, a<a href="#home">home</a>
must correspond to something in the dom like<div id="home"></div>
. +Options
Notice Individual tooltip instance options can alternatively be specified through the use of data attributes.
+For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.
Notice Individual popover instance options can alternatively be specified through the use of data attributes.
+For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a the selector option. @@ -1030,19 +1044,23 @@ $('#my-alert').bind('closed', function () {
Toggles push state. Gives btn the look that it's been activated.
-Notice You can enable auto toggling of a button by using the data-toggle
attribute.
data-toggle
attribute.
+ <button class="btn" data-toggle="button" >…</button>
Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text
.
<button class="btn" data-loading-text="loading stuff..." >...</button>-
- Notice Firefox persists the disabled state across page loads. A workaround for this is to use: autocomplete="off"
. More info can be found here.
-
Resets button state - swaps text to original text.
-Resets button state - swaps text to any data defined text state.
+<button class="btn" data-loading-text="loading stuff..." >...</button>+
autocomplete="off"
.
+ Resets button state - swaps text to original text.
+Resets button state - swaps text to any data defined text state.
<button class="btn" data-complete-text="finished!" >...</button> <script> $('.btn').button('complete') @@ -1146,7 +1164,10 @@ $('#my-alert').bind('closed', function () { </button> <div id="demo" class="collapse in"> … </div>-
Notice To add accordion like group management to a collapsible control just add the additional data attribute data-parent="#selector"
. Refer to the demo below to see this in action.
data-parent="#selector"
. Refer to the demo to see this in action.
+ Activates your content as a collapsible element. Accepts an optional options object
.
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache
index 3c7a3b101f..ee70bf21b4 100644
--- a/docs/templates/pages/javascript.mustache
+++ b/docs/templates/pages/javascript.mustache
@@ -81,7 +81,7 @@
{{_i}}Notice If you want your modal to animate in and out, just add a .fade
class to the .modal
element (refer to the demo to see this in action).{{/i}}
.fade
class to the .modal
element (refer to the demo to see this in action) and include bootstrap-transition.js.{{/i}}
+ {{_i}}Activates your content as a modal. Accepts an optional options object
.{{/i}}
$('.dropdown-toggle').dropdown()
{{_i}}To quickly add dropdown functionality to any element just add data-toggle="dropdown"
and any valid bootstrap dropdown will automatically be activated.{{/i}}
{{_i}}Notice For added control and flexibility, optionally specify a data-target="#fat"
or href="#fat"
- this allows you to target specific dropdowns.{{/i}}
data-target="#fat"
or href="#fat"
.{{/i}}
+ <ul class="nav pills"> @@ -468,7 +473,10 @@ $('#myModal').on('hidden', function () {{{_i}}Markup{{/i}}
{{_i}}To easily add scrollspy behavior to your topbar navigation, just add
data-spy="scroll"
to the element you want to spy on (most typically this would be the body).{{/i}}<body data-spy="scroll" >...</body>-{{_i}}Notice Navbar anchor tags must have resolvable id targets. For example, a
+<a href="#home">home</a>
must correspond to something in the dom like<div id="home"></div>
.{{/i}}+ {{_i}}Heads up!{{/i}} + {{_i}}Navbar links must have resolvable id targets. For example, a<a href="#home">home</a>
must correspond to something in the dom like<div id="home"></div>
.{{/i}} +{{_i}}Options{{/i}}
{{_i}}Notice Individual tooltip instance options can alternatively be specified through the use of data attributes.{{/i}}
+{{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}
{{_i}}Notice Individual popover instance options can alternatively be specified through the use of data attributes.{{/i}}
+{{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a the selector option.{{/i}} @@ -965,19 +979,23 @@ $('#my-alert').bind('closed', function () {
{{_i}}Toggles push state. Gives btn the look that it's been activated.{{/i}}
-{{_i}}Notice You can enable auto toggling of a button by using the data-toggle
attribute.{{/i}}
data-toggle
attribute.{{/i}}
+ <button class="btn" data-toggle="button" >…</button>
{{_i}}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text
.{{/i}}
<button class="btn" data-loading-text="loading stuff..." >...</button>-
- {{_i}}Notice Firefox persists the disabled state across page loads. A workaround for this is to use: autocomplete="off"
. More info can be found here.{{/i}}
-
{{_i}}Resets button state - swaps text to original text.{{/i}}
-{{_i}}Resets button state - swaps text to any data defined text state.{{/i}}
+<button class="btn" data-loading-text="loading stuff..." >...</button>+
autocomplete="off"
.{{/i}}
+ {{_i}}Resets button state - swaps text to original text.{{/i}}
+{{_i}}Resets button state - swaps text to any data defined text state.{{/i}}
<button class="btn" data-complete-text="finished!" >...</button> <script> $('.btn').button('complete') @@ -1081,7 +1099,10 @@ $('#my-alert').bind('closed', function () { </button> <div id="demo" class="collapse in"> … </div>-
{{_i}}Notice To add accordion like group management to a collapsible control just add the additional data attribute data-parent="#selector"
. Refer to the demo below to see this in action.{{/i}}
data-parent="#selector"
. Refer to the demo to see this in action.{{/i}}
+ {{_i}}Activates your content as a collapsible element. Accepts an optional options object
.{{/i}}