diff --git a/docs/javascript.html b/docs/javascript.html index 5a7c46b018..bdcc622dec 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -914,7 +914,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
Closes an alert.
$(".alert-message").alert('close')
Bootstrap's alert class exposes a few events for hooking into alert functionality.
+Bootstrap's alert class exposes a few events for hooking into alert functionality.
$('#my-alert').bind('closed', function () { - // do something ... + // do something… })@@ -1024,7 +1024,7 @@ $('#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.
<button class="btn" data-toggle="button" >...</button>+
<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
.
show
instance method is called.$('#myCollapsible').on('hidden', function () { - // do something ... + // do something… })@@ -1293,7 +1293,7 @@ $('.myCarousel').carousel({
Cycles to the next item.
Bootstrap's modal class exposes a few events for hooking into modal functionality.
+Bootstrap's modal class exposes a few events for hooking into modal functionality.
{{_i}}apply a css fade transition to the tooltip{{/i}} | ||||||
placement | -string | +{{_i}}placement{{/i}} | +{{_i}}string{{/i}} | 'top' | -how to position the tooltip - top | bottom | left | right | +{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right |
selector | -string | +{{_i}}selector{{/i}} | +{{_i}}string{{/i}} | false | -If a selector is provided, tooltip objects will be delegated to the specified targets. | +{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}} |
title | -string | function | +{{_i}}title{{/i}} | +{{_i}}string | function{{/i}} | '' | -default title value if `title` tag isn't present | +{{_i}}default title value if `title` tag isn't present{{/i}} |
trigger | -string | +{{_i}}trigger{{/i}} | +{{_i}}string{{/i}} | 'hover' | -how tooltip is triggered - hover | focus | manual | +{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual |
delay | -number | object | +{{_i}}delay{{/i}} | +{{_i}}number | object{{/i}} | 0 |
- delay showing/hiding the tooltip (ms) -If a number is supplied, delay is applied to both hide/show -Object structure is: {{_i}}delay showing/hiding the tooltip (ms){{/i}} +{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}} +{{_i}}Object structure is: |
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.
-Attaches a tooltip handler to an element collection.
+{{_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}}Attaches a tooltip handler to an element collection.{{/i}}
Reveals an elements tooltip.
+{{_i}}Reveals an elements tooltip.{{/i}}
$('#element').tooltip('show')
Hides an elements tooltip.
+{{_i}}Hides an elements tooltip.{{/i}}
$('#element').tooltip('hide')@@ -715,97 +715,97 @@ $('a[data-toggle="tab"]').on('shown', function (e) { ================================================== -->
Add small overlays of content, like those on the iPad, to any element for housing secondary information.
-* Requires Tooltip to be included
- Download file +{{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information.{{/i}}
+* {{_i}}Requires Tooltip to be included{{/i}}
+ {{_i}}Download file{{/i}}Hover over the button to trigger the popover.
+{{_i}}Hover over the button to trigger the popover.{{/i}}
Enable popovers via javascript:
-$('#example').popover(options)-
{{_i}}Enable popovers via javascript:{{/i}}
+$('#example').popover({{_i}}options{{/i}})+
Name | -type | -default | -description | +{{_i}}Name{{/i}} | +{{_i}}type{{/i}} | +{{_i}}default{{/i}} | +{{_i}}description{{/i}} |
---|---|---|---|---|---|---|---|
animation | -boolean | +{{_i}}animation{{/i}} | +{{_i}}boolean{{/i}} | true | -apply a css fade transition to the tooltip | +{{_i}}apply a css fade transition to the tooltip{{/i}} | |
placement | -string | +{{_i}}placement{{/i}} | +{{_i}}string{{/i}} | 'right' | -how to position the popover - top | bottom | left | right | +{{_i}}how to position the popover{{/i}} - top | bottom | left | right | |
selector | -string | +{{_i}}selector{{/i}} | +{{_i}}string{{/i}} | false | -if a selector is provided, tooltip objects will be delegated to the specified targets | +{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}} | |
trigger | -string | +{{_i}}trigger{{/i}} | +{{_i}}string{{/i}} | 'hover' | -how tooltip is triggered - hover | focus | manual | +{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual | |
title | -string | function | +{{_i}}title{{/i}} | +{{_i}}string | function{{/i}} | '' | -default title value if `title` attribute isn't present | +{{_i}}default title value if `title` attribute isn't present{{/i}} | |
content | -string | function | +{{_i}}content{{/i}} | +{{_i}}string | function{{/i}} | '' | -default content value if `data-content` attribute isn't present | +{{_i}}default content value if `data-content` attribute isn't present{{/i}} | |
delay | -number | object | +{{_i}}delay{{/i}} | +{{_i}}number | object{{/i}} | 0 |
- delay showing/hiding the popover (ms) -If a number is supplied, delay is applied to both hide/show -Object structure is: {{_i}}delay showing/hiding the popover (ms){{/i}} +{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}} +{{_i}}Object structure is: |
Notice Individual popover instance options can alternatively be specified through the use of data attributes.
-{{_i}}Notice Individual popover instance options can alternatively be specified through the use of data attributes.{{/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}}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}}
-Initializes popovers for an element collection.
+{{_i}}Initializes popovers for an element collection.{{/i}}
Reveals an elements popover.
+{{_i}}Reveals an elements popover.{{/i}}
$('#element').popover('show')
Hides an elements popover.
+{{_i}}Hides an elements popover.{{/i}}
$('#element').popover('hide')
The alert plugin is a tiny class for adding close functionality to alerts.
- Download +{{_i}}The alert plugin is a tiny class for adding close functionality to alerts.{{/i}}
+ {{_i}}Download{{/i}}The alerts plugin works on regular alert messages, and block messages.
+{{_i}}The alerts plugin works on regular alert messages, and block messages.{{/i}}
Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.
+{{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}
- Take this action Or do this + {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}}
Enable dismissal of an alert via javascript:
+{{_i}}Enable dismissal of an alert via javascript:{{/i}}
$(".alert-message").alert()-
Just add data-dismiss="alert"
to your close button to automatically give an alert close functionality.
{{_i}}Just add data-dismiss="alert"
to your close button to automatically give an alert close functionality.{{/i}}
<a class="close" data-dismiss="alert" href="#">×</a>-
Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade
and .in
class already applied to them.
{{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade
and .in
class already applied to them.{{/i}}
Closes an alert.
+{{_i}}Closes an alert.{{/i}}
$(".alert-message").alert('close')-
Bootstrap's alert class exposes a few events for hooking into alert functionality.
+{{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}
Event | -Description | +{{_i}}Event{{/i}} | +{{_i}}Description{{/i}} |
---|---|---|---|
close | -This event fires immediately when the close instance method is called. |
+ {{_i}}close{{/i}} | +{{_i}}This event fires immediately when the close instance method is called.{{/i}} |
closed | -This event is fired when the alert has been closed (will wait for css transitions to complete). | +{{_i}}closed{{/i}} | +{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}} |
$('#my-alert').bind('closed', function () { - // do something ... + // {{_i}}do something…{{/i}} })