diff options
| author | Chris Rebert <[email protected]> | 2014-08-04 09:08:07 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-08-04 09:08:07 -0700 |
| commit | fb2e9fe30c9f790b71a88aeb10563be267f429c2 (patch) | |
| tree | 7b1a18e2735d113f03fe52fc040ba74aee29a7bf /docs/_includes/js/overview.html | |
| parent | 77b0dc69ebefb8c3ddb1b25a0bd51ef53c0d0e9b (diff) | |
| parent | 333af7d371ee56db24030786c3036f3198fd3016 (diff) | |
| download | bootstrap-fb2e9fe30c9f790b71a88aeb10563be267f429c2.tar.xz bootstrap-fb2e9fe30c9f790b71a88aeb10563be267f429c2.zip | |
Merge branch 'KyleMit/add-default-settings-documentation'
Diffstat (limited to 'docs/_includes/js/overview.html')
| -rw-r--r-- | docs/_includes/js/overview.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/_includes/js/overview.html b/docs/_includes/js/overview.html index 3aaba0980..2a3c41a8b 100644 --- a/docs/_includes/js/overview.html +++ b/docs/_includes/js/overview.html @@ -47,6 +47,12 @@ $('#myModal').modal('show') // initializes and invokes show immed <p>Each plugin also exposes its raw constructor on a <code>Constructor</code> property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel="popover"]').data('popover')</code>.</p> + <h4>Default settings</h4> + <p>You can change the default settings for a plugin by modifying the plugin's <code>Constructor.DEFAULTS</code> object:<p> +{% highlight js %} +$.fn.modal.Constructor.DEFAULTS.keyboard = false // changes default for the modal plugin's `keyboard` option to false +{% endhighlight %} + <h3 id="js-noconflict">No conflict</h3> <p>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 <code>.noConflict</code> on the plugin you wish to revert the value of.</p> {% highlight js %} |
