From ba7d9217323e8f0ecf6d8548779cc399ac0f5c51 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 7 Aug 2017 21:42:36 -0700 Subject: clarify optional js, add some links, emphasize some text --- docs/4.0/getting-started/javascript.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs/4.0/getting-started/javascript.md') diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index c4fb2366a..003ebdb7b 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -1,7 +1,7 @@ --- layout: docs title: JavaScript -description: Bring Bootstrap to life with our JavaScript plugins built on jQuery. Learn about each plugin, our data and programmatic API options, and more. +description: Bring Bootstrap to life with our optional JavaScript plugins built on jQuery. Learn about each plugin, our data and programmatic API options, and more. group: getting-started toc: true --- @@ -12,7 +12,9 @@ Plugins can be included individually (using Bootstrap's individual `*.js` files) ## 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`]({{ site.repo }}/blob/v{{ site.current_version }}/bower.json) to see which versions of jQuery are supported. +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`]({{ site.repo }}/blob/v{{ site.current_version }}/bower.json) to see which versions of jQuery are supported. + +Our tooltips and popovers also depend on [Popper.js](https://github.com/FezVrasta/popper.js). ## Data attributes -- cgit v1.2.3 From 55389673814dc96d5477f679052013db5e10ea66 Mon Sep 17 00:00:00 2001 From: Varunram Date: Fri, 16 Jun 2017 19:18:21 +0530 Subject: Add event.preventDefault documentation to javascript.md --- docs/4.0/getting-started/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/getting-started/javascript.md') diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index 003ebdb7b..bd2f969ff 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -36,7 +36,7 @@ $(document).off('.alert.data-api') Bootstrap provides custom events for most plugins' unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. `show`) is triggered at the start of an event, and its past participle form (ex. `shown`) is triggered on the completion of an action. -All infinitive events provide [`preventDefault()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault) functionality. This provides the ability to stop the execution of an action before it starts. +All infinitive events provide [`preventDefault()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault) functionality. This provides the ability to stop the execution of an action before it starts. Returning false from an event handler will also automatically call `preventDefault()` {% highlight js %} $('#myModal').on('show.bs.modal', function (e) { -- cgit v1.2.3 From caa7117e231b27e5359a9aa822bcff60defa0393 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 16 Jun 2017 18:59:43 -0700 Subject: Update javascript.md --- docs/4.0/getting-started/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/getting-started/javascript.md') diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index bd2f969ff..92891a2ab 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -36,7 +36,7 @@ $(document).off('.alert.data-api') Bootstrap provides custom events for most plugins' unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. `show`) is triggered at the start of an event, and its past participle form (ex. `shown`) is triggered on the completion of an action. -All infinitive events provide [`preventDefault()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault) functionality. This provides the ability to stop the execution of an action before it starts. Returning false from an event handler will also automatically call `preventDefault()` +All infinitive events provide [`preventDefault()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault) functionality. This provides the ability to stop the execution of an action before it starts. Returning false from an event handler will also automatically call `preventDefault()`. {% highlight js %} $('#myModal').on('show.bs.modal', function (e) { -- cgit v1.2.3 From f8e89c52b5d53ecd76a86b83988e98df8b307522 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 11 Aug 2017 16:50:08 +0300 Subject: Fix JavaScript case and a typo. (#23320) --- docs/4.0/getting-started/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/getting-started/javascript.md') diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index 92891a2ab..b33789b72 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -119,6 +119,6 @@ Bootstrap's plugins don't fall back particularly gracefully when JavaScript is d ## Util -All Bootstrap Javascript depend on `util.js` and it has to be included alongside the other JS files. If you're using the compiled (or minified) `bootstrap.js`, there is no need to include this—it's already there. +All Bootstrap's JavaScript files depend on `util.js` and it has to be included alongside the other JS files. If you're using the compiled (or minified) `bootstrap.js`, there is no need to include this—it's already there. `util.js` includes utility functions and a basic helper for `transitionEnd` events as well as a CSS transition emulator. It's used by the other plugins to check for CSS transition support and to catch hanging transitions. -- cgit v1.2.3 From c770e6883695e8b5d92a1107d3a49b1cb63655b6 Mon Sep 17 00:00:00 2001 From: Tanguy Krotoff Date: Tue, 5 Sep 2017 00:29:05 +0200 Subject: Drop Bower support (#23568) --- docs/4.0/getting-started/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/getting-started/javascript.md') diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index b33789b72..12e7f89ca 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -12,7 +12,7 @@ Plugins can be included individually (using Bootstrap's individual `*.js` files) ## 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`]({{ site.repo }}/blob/v{{ site.current_version }}/bower.json) to see which versions of jQuery are supported. +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 `package.json`]({{ site.repo }}/blob/v{{ site.current_version }}/package.json) to see which versions of jQuery are supported. Our tooltips and popovers also depend on [Popper.js](https://github.com/FezVrasta/popper.js). -- cgit v1.2.3 From 31c872191380d4cd32af379b9d24359d6a9dc34c Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 26 Sep 2017 15:24:14 +0300 Subject: Normalize all links. (#24109) * use a trailing slash when possible * use https when possible * remove a few redirected links * consistently use `https://popper.js.org/` * fix `iconUrl` in nuget files * change Jekyll Windows guide to the official one --- docs/4.0/getting-started/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/getting-started/javascript.md') diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index 12e7f89ca..c29895f37 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -14,7 +14,7 @@ Plugins can be included individually (using Bootstrap's individual `*.js` files) 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 `package.json`]({{ site.repo }}/blob/v{{ site.current_version }}/package.json) to see which versions of jQuery are supported. -Our tooltips and popovers also depend on [Popper.js](https://github.com/FezVrasta/popper.js). +Our tooltips and popovers also depend on [Popper.js](https://popper.js.org/). ## Data attributes -- cgit v1.2.3 From 7e6374db92ea11c9d9bb6dcfd693ca6b8ffd3276 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 26 Sep 2017 14:50:35 +0300 Subject: Minor Markdown consistency changes. --- docs/4.0/getting-started/javascript.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/4.0/getting-started/javascript.md') diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index c29895f37..9e080dc32 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -84,6 +84,7 @@ $('#myCarousel').carousel('2') // !! Will be ignored, as the transition to the s {% endhighlight %} ### Default settings + You can change the default settings for a plugin by modifying the plugin's `Constructor.Default` object: {% highlight js %} -- cgit v1.2.3 From 92d3536306d2de9b5e3a0ddb31f2a61e524b1e19 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 26 Sep 2017 16:43:56 +0300 Subject: Mention that dropdowns depend on popper.js too. --- docs/4.0/getting-started/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/getting-started/javascript.md') diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index 9e080dc32..648132255 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -14,7 +14,7 @@ Plugins can be included individually (using Bootstrap's individual `*.js` files) 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 `package.json`]({{ site.repo }}/blob/v{{ site.current_version }}/package.json) to see which versions of jQuery are supported. -Our tooltips and popovers also depend on [Popper.js](https://popper.js.org/). +Our dropdowns, popovers and tooltips also depend on [Popper.js](https://popper.js.org/). ## Data attributes -- cgit v1.2.3