From 7983ba9473142c6844d6554a28e58ecbf14190da Mon Sep 17 00:00:00 2001 From: Johann-S Date: Wed, 6 Sep 2017 10:09:51 +0200 Subject: Add information about our bundled dist files which contains Popper.js --- docs/4.0/components/dropdowns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/components/dropdowns.md') diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index a65c1f0f2..93c9c892a 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -10,7 +10,7 @@ toc: true Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They're made interactive with the included Bootstrap dropdown JavaScript plugin. They're toggled by clicking, not by hovering; this is [an intentional design decision.](http://markdotto.com/2012/02/27/bootstrap-explained-dropdowns/) -Dropdowns are built on a third party library, [Popper.js](https://popper.js.org), which provides dynamic positioning and viewport detection. Be sure to include [popper.min.js]({{ site.cdn.popper }}) before Bootstrap's JavaScript. +Dropdowns are built on a third party library, [Popper.js](https://popper.js.org), which provides dynamic positioning and viewport detection. Be sure to include [popper.min.js]({{ site.cdn.popper }}) before Bootstrap's JavaScript or use `bootstrap.bundle.min.js` / `bootstrap.bundle.js` which contains Popper.js. If you're building our JS from source, it [requires `util.js`]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/javascript/#util). -- cgit v1.2.3 From b822b5a17f87c62000ec3a058e3f2ccca8a10d3e Mon Sep 17 00:00:00 2001 From: Johann-S Date: Thu, 7 Sep 2017 12:47:43 +0200 Subject: Remove placement attribute from our Dropdown plugin --- docs/4.0/components/dropdowns.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'docs/4.0/components/dropdowns.md') diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index 93c9c892a..9c611c629 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -574,7 +574,7 @@ Regardless of whether you call your dropdown via JavaScript or instead use the d ### Options -Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-`, as in `data-placement=""`. +Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-`, as in `data-offset=""`. @@ -586,14 +586,6 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap - - - - - - -- cgit v1.2.3 From f7f89f5f732239eef8287d22a0ccce7ce7af3d46 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Thu, 7 Sep 2017 13:20:51 +0200 Subject: Update callout about the positionning of our Dropdowns --- docs/4.0/components/dropdowns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/4.0/components/dropdowns.md') diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index 9c611c629..b01636615 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -432,7 +432,7 @@ Historically dropdown menu contents *had* to be links, but that's no longer the By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add `.dropdown-menu-right` to a `.dropdown-menu` to right align the dropdown menu. {% callout info %} -**Heads up!** Dropdowns are positioned only with CSS and may need some additional styles for exact alignment. +**Heads up!** Dropdowns are positioned thanks to Popper.js (except when they are contained in a navbar). {% endcallout %} {% example html %} -- cgit v1.2.3
placementstring'bottom' -

How to position the popover - top | bottom.

-
offset number | string