aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs
diff options
context:
space:
mode:
authorNils K <[email protected]>2020-12-21 13:32:11 +0100
committerGitHub <[email protected]>2020-12-21 14:32:11 +0200
commit2d46e47464d15182c44a7d92c8f2476e70f4434e (patch)
tree39be89ab0696d4508df55ecc46db23f3e7df0ce1 /site/content/docs
parent44667d89fa1bf8de15db57fad43696c62860e288 (diff)
downloadbootstrap-2d46e47464d15182c44a7d92c8f2476e70f4434e.tar.xz
bootstrap-2d46e47464d15182c44a7d92c8f2476e70f4434e.zip
Support Popper virtual elements (#32376)
Adds the ability to use objects implementing the virtual element interface as the value for the reference option of a dropdown config. Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'site/content/docs')
-rw-r--r--site/content/docs/5.0/components/dropdowns.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.0/components/dropdowns.md b/site/content/docs/5.0/components/dropdowns.md
index 50dcde2ba..a50dcf0f5 100644
--- a/site/content/docs/5.0/components/dropdowns.md
+++ b/site/content/docs/5.0/components/dropdowns.md
@@ -886,9 +886,9 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
</tr>
<tr>
<td><code>reference</code></td>
- <td>string | element</td>
+ <td>string | element | object</td>
<td><code>'toggle'</code></td>
- <td>Reference element of the dropdown menu. Accepts the values of <code>'toggle'</code>, <code>'parent'</code>, or an HTMLElement reference. For more information refer to Popper's <a href="https://popper.js.org/docs/v2/constructors/#createpopper">constructor docs</a>.</td>
+ <td>Reference element of the dropdown menu. Accepts the values of <code>'toggle'</code>, <code>'parent'</code>, an HTMLElement reference or an object providing <code>getBoundingClientRect</code>. For more information refer to Popper's <a href="https://popper.js.org/docs/v2/constructors/#createpopper">constructor docs</a> and <a href="https://popper.js.org/docs/v2/virtual-elements/">virtual element docs</a>.</td>
</tr>
<tr>
<td><code>display</code></td>