From 0d8c85d8f9bce200a00f53aa3701c68a78bdb33d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 19 Jan 2015 09:10:41 -0800 Subject: docs for 3.3.2 --- javascript/index.html | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'javascript') diff --git a/javascript/index.html b/javascript/index.html index 3a4d7abad..6a3c35159 100644 --- a/javascript/index.html +++ b/javascript/index.html @@ -122,7 +122,7 @@

Plugin dependencies

-

Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that all plugins depend on jQuery (this means jQuery must be included before the plugin files). Consult our bower.json to see which versions of jQuery are supported.

+

Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that all plugins depend on jQuery (this means jQuery must be included before the plugin files). Consult our bower.json to see which versions of jQuery are supported.

Data attributes

@@ -167,6 +167,10 @@ if (!data) return e.preventDefault() // stops modal from being shown }) +

Version numbers

+

The version of each of Bootstrap's jQuery plugins can be accessed via the VERSION property of the plugin's constructor. For example, for the tooltip plugin:

+
$.fn.tooltip.Constructor.VERSION // => "3.3.2"
+

No special fallbacks when JavaScript is disabled

Bootstrap's plugins don't fall back particularly gracefully when JavaScript is disabled. If you care about the user experience in this case, use <noscript> to explain the situation (and how to re-enable JavaScript) to your users, and/or add your own custom fallbacks.

@@ -1083,8 +1087,7 @@

Examples

Hover over the links below to see tooltips:

-

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral. -

+

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.

Static tooltip

@@ -1283,15 +1286,15 @@

Attaches a tooltip handler to an element collection.

.tooltip('show')

-

Reveals an element's tooltip. Tooltips with zero-length titles are never displayed.

+

Reveals an element's tooltip. Returns to the caller before the tooltip has actually been shown (i.e. before the shown.bs.tooltip event occurs). This is considered a "manual" triggering of the tooltip. Tooltips with zero-length titles are never displayed.

$('#element').tooltip('show')

.tooltip('hide')

-

Hides an element's tooltip.

+

Hides an element's tooltip. Returns to the caller before the tooltip has actually been hidden (i.e. before the hidden.bs.tooltip event occurs). This is considered a "manual" triggering of the tooltip.

$('#element').tooltip('hide')

.tooltip('toggle')

-

Toggles an element's tooltip.

+

Toggles an element's tooltip. Returns to the caller before the tooltip has actually been shown or hidden (i.e. before the shown.bs.tooltip or hidden.bs.tooltip event occurs). This is considered a "manual" triggering of the tooltip.

$('#element').tooltip('toggle')

.tooltip('destroy')

@@ -1454,9 +1457,9 @@ sagittis lacus vel augue laoreet rutrum faucibus.">For proper cross-browser and cross-platform behavior, you must use the <a> tag, not the <button> tag, and you also must include a tabindex attribute.

-
<a href="#" tabindex="0" class="btn btn-lg btn-danger" role="button" data-toggle="popover" data-trigger="focus" title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissible popover</a>
+
<a tabindex="0" class="btn btn-lg btn-danger" role="button" data-toggle="popover" data-trigger="focus" title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissible popover</a>

Usage

@@ -1578,20 +1581,21 @@ sagittis lacus vel augue laoreet rutrum faucibus."
>Initializes popovers for an element collection.

.popover('show')

-

Reveals an element's popover. Popovers whose both title and content are zero-length are never displayed.

+

Reveals an element's popover. Returns to the caller before the popover has actually been shown (i.e. before the shown.bs.popover event occurs). This is considered a "manual" triggering of the popover. Popovers whose both title and content are zero-length are never displayed.

$('#element').popover('show')

.popover('hide')

-

Hides an element's popover.

+

Hides an element's popover. Returns to the caller before the popover has actually been hidden (i.e. before the hidden.bs.popover event occurs). This is considered a "manual" triggering of the popover.

$('#element').popover('hide')

.popover('toggle')

-

Toggles an element's popover.

+

Toggles an element's popover. Returns to the caller before the popover has actually been shown or hidden (i.e. before the shown.bs.popover or hidden.bs.popover event occurs). This is considered a "manual" triggering of the popover.

$('#element').popover('toggle')

.popover('destroy')

Hides and destroys an element's popover.

$('#element').popover('destroy')
+

Events

@@ -2465,6 +2469,7 @@ sagittis lacus vel augue laoreet rutrum faucibus.">Programmatic API
  • No conflict
  • Events
  • +
  • Version numbers
  • When JavaScript is disabled
  • Third-party libraries
  • @@ -2621,7 +2626,7 @@ sagittis lacus vel augue laoreet rutrum faucibus."
    >Maintained by the core team with the help of our contributors.

    Code licensed under MIT, documentation under CC BY 3.0.