aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-11-11 19:35:08 -0800
committerChris Rebert <[email protected]>2014-11-11 19:35:08 -0800
commitab1a9d4fac0cb1fba893559e417fc85badac518c (patch)
treee03ecd34d498cb786b088c6422ae0cae5865b64c /docs/_includes
parent5ba52001952b6a0744fc17252c0a07b97a836583 (diff)
downloadbootstrap-ab1a9d4fac0cb1fba893559e417fc85badac518c.tar.xz
bootstrap-ab1a9d4fac0cb1fba893559e417fc85badac518c.zip
move data attributes callout into data attributes doc subsection
Diffstat (limited to 'docs/_includes')
-rw-r--r--docs/_includes/js/overview.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/_includes/js/overview.html b/docs/_includes/js/overview.html
index 2a3c41a8b..4e4faa4a9 100644
--- a/docs/_includes/js/overview.html
+++ b/docs/_includes/js/overview.html
@@ -10,11 +10,6 @@
</div>
<div class="bs-callout bs-callout-danger">
- <h4>Component data attributes</h4>
- <p>Don't use data attributes from multiple plugins on the same element. For example, a button cannot both have a tooltip and toggle a modal. To accomplish this, use a wrapping element.</p>
- </div>
-
- <div class="bs-callout bs-callout-danger">
<h4>Plugin dependencies</h4>
<p>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 <strong>before</strong> the plugin files). <a href="{{ site.repo }}/blob/v{{ site.current_version }}/bower.json">Consult our <code>bower.json</code></a> to see which versions of jQuery are supported.</p>
</div>
@@ -32,6 +27,11 @@ $(document).off('.data-api')
$(document).off('.alert.data-api')
{% endhighlight %}
+ <div class="bs-callout bs-callout-danger">
+ <h4>Only one plugin per element via data attributes</h4>
+ <p>Don't use data attributes from multiple plugins on the same element. For example, a button cannot both have a tooltip and toggle a modal. To accomplish this, use a wrapping element.</p>
+ </div>
+
<h3 id="js-programmatic-api">Programmatic API</h3>
<p>We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.</p>
{% highlight js %}