From 76e42edb29301be6d2f1014bbd64939d3f6f39a4 Mon Sep 17 00:00:00 2001
From: Geoff Young That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:
Alternatively, to target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this: Alternatively, to target a specific plugin, just include the plugin's name as a namespace along with the data-api namespace like this:$('body').off('.data-api')
- $('body').off('.alert.data-api')
Programmatic API
@@ -132,10 +132,10 @@ $("#myModal").modal() // initialized with defaults
$("#myModal").modal({ keyboard: false }) // initialized with no keyboard
$("#myModal").modal('show') // initializes and invokes show immediately
Each plugin also exposes it's raw constructor on a `Constructor` property: $.fn.popover.Constructor. If you'd like to get a particular plugin instance, retrieve it directly from an element: $('[rel=popover]').data('popover').
Each plugin also exposes its raw constructor on a `Constructor` property: $.fn.popover.Constructor. If you'd like to get a particular plugin instance, retrieve it directly from an element: $('[rel=popover]').data('popover').
Bootstrap provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. show) is triggered at the start of an event, and it's past participle form (ex. shown) is trigger on the completion of an action.
Bootstrap provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. show) is triggered at the start of an event, and its past participle form (ex. shown) is trigger on the completion of an action.
All infinitive events provide preventDefault functionality. This provides the abililty to stop the execution of an action before it starts.
$('#myModal').on('show', function (e) {
--
cgit v1.2.3
From 595e1a189c1911ada7c4bd4c769c28b1741611ac Mon Sep 17 00:00:00 2001
From: Mark Otto
Date: Thu, 13 Sep 2012 10:07:57 -0700
Subject: fixes #5119: javascript in navbar typo
---
docs/javascript.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'docs/javascript.html')
diff --git a/docs/javascript.html b/docs/javascript.html
index 324f978fd..a0c707b8d 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -58,7 +58,7 @@
Components
- Javascript
+ JavaScript
Customize
--
cgit v1.2.3
From cedb3c7c56887d4ca42296ee193f2ff08dfe9ac4 Mon Sep 17 00:00:00 2001
From: Mark Otto
Date: Mon, 17 Sep 2012 23:03:18 -0700
Subject: fixes #5173: proper popover offsets; added docs examples to enable
tests in the future
---
docs/javascript.html | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'docs/javascript.html')
diff --git a/docs/javascript.html b/docs/javascript.html
index a0c707b8d..6c028e01e 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -925,6 +925,16 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
Click to toggle popover
+ Four directions
+
+
+
+
--
cgit v1.2.3
From aec8b089307d6bc8787aceb7001313e3751048c1 Mon Sep 17 00:00:00 2001
From: Jacob Thornton
Date: Mon, 24 Sep 2012 23:32:55 -0700
Subject: update docs for tooltip html + the dropdown methods api
---
docs/javascript.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'docs/javascript.html')
diff --git a/docs/javascript.html b/docs/javascript.html
index 6c028e01e..ca03bb481 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -506,8 +506,8 @@ $('#myModal').on('hidden', function () {
None
Methods
- $().dropdown()
- A programatic api for activating menus for a given navbar or tabbed navigation.
+ $().dropdown('toggle')
+ A programatic api for toggling menus for a given navbar or tabbed navigation.
@@ -804,7 +804,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
html
boolean
- true
+ false
Insert html into the tooltip. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.
@@ -964,7 +964,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
html
boolean
- true
+ false
Insert html into the popover. If false, jquery's text method will be used to insert content into the dom. Use text if you're worried about XSS attacks.
--
cgit v1.2.3
From 8ecffcb32fc0d3a423f87fac9e613498b5104fe7 Mon Sep 17 00:00:00 2001
From: Mark Otto
Date: Fri, 28 Sep 2012 10:39:15 -0700
Subject: fixes #5334: html snippet comments
---
docs/javascript.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'docs/javascript.html')
diff --git a/docs/javascript.html b/docs/javascript.html
index ca03bb481..f13668877 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -249,10 +249,10 @@ $('#myModal').on('show', function (e) {
Launch demo modal
-<-- Button to trigger modal -->
+<!-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
-<-- Modal -->
+<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
--
cgit v1.2.3
From fd1e9b1498f3bae87025839bf44865d937795cc7 Mon Sep 17 00:00:00 2001
From: Mark Otto
Date: Mon, 1 Oct 2012 13:28:54 -0700
Subject: fix copy on modal popover button doodad
---
docs/javascript.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'docs/javascript.html')
diff --git a/docs/javascript.html b/docs/javascript.html
index f13668877..c61c0bc4f 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -224,7 +224,7 @@ $('#myModal').on('show', function (e) {
Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.
Popover in a modal
- This button should trigger a popover on hover.
+ This button should trigger a popover on click.
Tooltips in a modal
This link and that link should have tooltips on hover.
--
cgit v1.2.3
From e73cd15fc8eaa80ab7913d51a23a8e61c0e1bb30 Mon Sep 17 00:00:00 2001
From: Mark Otto
Date: Tue, 2 Oct 2012 17:01:18 -0700
Subject: copy and style changes to improve docs rendering on mobile devices
---
docs/javascript.html | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
(limited to 'docs/javascript.html')
diff --git a/docs/javascript.html b/docs/javascript.html
index c61c0bc4f..1e0ca5816 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -73,7 +73,7 @@
================================================== -->
- JavaScript for Bootstrap
+ JavaScript
Bring Bootstrap's components to life—now with 13 custom jQuery plugins.
@@ -1701,12 +1701,14 @@ $('[data-spy="affix"]').each(function () {
+
+ updater
+ function
+ returns selected item
+ The method used to return selected item. Accepts a single argument, the item and has the scope of the typeahead instance.
+
highlighter
function
--
cgit v1.2.3