aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-08-04 15:09:23 -0700
committerMark Otto <[email protected]>2014-08-04 15:09:23 -0700
commit724240fe4f2cba653cec0aad217dd133aaa9e051 (patch)
tree48e8ee949ec664305e252c983f121d28d5d5bc5d /docs/javascript
parent9e92b74aa3a3d5807d3201ac4ea1778ea120274f (diff)
parent9096c2002123a6dafdf0c3d9df5d069c968d738e (diff)
downloadbootstrap-724240fe4f2cba653cec0aad217dd133aaa9e051.tar.xz
bootstrap-724240fe4f2cba653cec0aad217dd133aaa9e051.zip
Merge branch 'master' into derp
Conflicts: dist/css/bootstrap.css.map dist/css/bootstrap.min.css docs/_includes/customizer-variables.html docs/_includes/js/overview.html docs/assets/js/customize.min.js docs/assets/js/raw-files.min.js docs/browser-bugs.html docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css less/carousel.less
Diffstat (limited to 'docs/javascript')
-rw-r--r--docs/javascript/overview.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/javascript/overview.md b/docs/javascript/overview.md
index 64c436ab3..e7a137ddd 100644
--- a/docs/javascript/overview.md
+++ b/docs/javascript/overview.md
@@ -56,6 +56,13 @@ $('#myModal').modal('show') // initializes and invokes show immed
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')`.
+#### Default settings
+You can change the default settings for a plugin by modifying the plugin's `Constructor.DEFAULTS` object:
+
+{% highlight js %}
+$.fn.modal.Constructor.DEFAULTS.keyboard = false // changes default for the modal plugin's `keyboard` option to false
+{% endhighlight %}
+
### No conflict
Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call `.noConflict` on the plugin you wish to revert the value of.