From ab1a9d4fac0cb1fba893559e417fc85badac518c Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 11 Nov 2014 19:35:08 -0800 Subject: [PATCH] move data attributes callout into data attributes doc subsection --- docs/_includes/js/overview.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/_includes/js/overview.html b/docs/_includes/js/overview.html index 2a3c41a8b0..4e4faa4a94 100644 --- a/docs/_includes/js/overview.html +++ b/docs/_includes/js/overview.html @@ -9,11 +9,6 @@

Both bootstrap.js and bootstrap.min.js contain all plugins in a single file. Include only one.

-
-

Component data attributes

-

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.

-
-

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.

@@ -32,6 +27,11 @@ $(document).off('.data-api') $(document).off('.alert.data-api') {% endhighlight %} +
+

Only one plugin per element via data attributes

+

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.

+
+

Programmatic API

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.

{% highlight js %}