From 38ec7c4df7a04b6942516669edb9517c9035dc1d Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 13 May 2020 22:36:00 +0300 Subject: Bump version to 5.0.0-alpha1 (#29925) Also add v4.5.0 in versions and keep README.md pointing to v4.5.0 so that there are no broken stuff. --- .../content/docs/5.0/getting-started/javascript.md | 229 +++++++++++++++++++++ 1 file changed, 229 insertions(+) create mode 100644 site/content/docs/5.0/getting-started/javascript.md (limited to 'site/content/docs/5.0/getting-started/javascript.md') diff --git a/site/content/docs/5.0/getting-started/javascript.md b/site/content/docs/5.0/getting-started/javascript.md new file mode 100644 index 000000000..3c5eecf36 --- /dev/null +++ b/site/content/docs/5.0/getting-started/javascript.md @@ -0,0 +1,229 @@ +--- +layout: docs +title: JavaScript +description: Bring Bootstrap to life with our optional JavaScript plugins. Learn about each plugin, our data and programmatic API options, and more. +group: getting-started +toc: true +--- + +## Individual or compiled + +Plugins can be included individually (using Bootstrap's individual `js/dist/*.js`), or all at once using `bootstrap.js` or the minified `bootstrap.min.js` (don't include both). + +If you use a bundler (Webpack, Rollup...), you can use `/js/dist/*.js` files which are UMD ready. + +## Using Bootstrap as a module + +We provide a version of Bootstrap built as `ESM` (`bootstrap.esm.js` and `bootstrap.esm.min.js`) which allows you to use Bootstrap as a module in your browser, if your [targeted browsers support it](https://caniuse.com/#feat=es6-module). + +{{< highlight html >}} + +{{< /highlight >}} + +{{< callout warning >}} +## Incompatible plugins + +Due to browser limitations, some of our plugins, namely Dropdown, Tooltip and Popover plugins, cannot be used in a `