aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs/5.0/components/dropdowns.md
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2020-06-27 12:28:21 +0100
committerGitHub <[email protected]>2020-06-27 14:28:21 +0300
commit2c38800ea224327a063a8fd5c11df8d2ee2ca5a6 (patch)
treed32dbba98a0a245e879cd517807475bce8a84653 /site/content/docs/5.0/components/dropdowns.md
parent22f32415c03a33547b64a080fa6bbd7e954b845f (diff)
downloadbootstrap-2c38800ea224327a063a8fd5c11df8d2ee2ca5a6.tar.xz
bootstrap-2c38800ea224327a063a8fd5c11df8d2ee2ca5a6.zip
Add code to method/property tables (#31130)
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'site/content/docs/5.0/components/dropdowns.md')
-rw-r--r--site/content/docs/5.0/components/dropdowns.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/site/content/docs/5.0/components/dropdowns.md b/site/content/docs/5.0/components/dropdowns.md
index 5260831da..02f4eaeec 100644
--- a/site/content/docs/5.0/components/dropdowns.md
+++ b/site/content/docs/5.0/components/dropdowns.md
@@ -822,9 +822,9 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
</thead>
<tbody>
<tr>
- <td>offset</td>
+ <td><code>offset</code></td>
<td>number | string | function</td>
- <td>0</td>
+ <td><code>0</code></td>
<td>
<p>Offset of the dropdown relative to its target.</p>
<p>When a function is used to determine the offset, it is called with an object containing the offset data as its first argument. The function must return an object with the same structure. The triggering element DOM node is passed as the second argument.</p>
@@ -832,33 +832,33 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
</td>
</tr>
<tr>
- <td>flip</td>
+ <td><code>flip</code></td>
<td>boolean</td>
- <td>true</td>
+ <td><code>true</code></td>
<td>Allow Dropdown to flip in case of an overlapping on the reference element. For more information refer to Popper.js's <a href="https://popper.js.org/docs/v1/#modifiers..flip.enabled">flip docs</a>.</td>
</tr>
<tr>
- <td>boundary</td>
+ <td><code>boundary</code></td>
<td>string | element</td>
- <td>'scrollParent'</td>
+ <td><code>'scrollParent'</code></td>
<td>Overflow constraint boundary of the dropdown menu. Accepts the values of <code>'viewport'</code>, <code>'window'</code>, <code>'scrollParent'</code>, or an HTMLElement reference (JavaScript only). For more information refer to Popper.js's <a href="https://popper.js.org/docs/v1/#modifiers..preventOverflow.boundariesElement">preventOverflow docs</a>.</td>
</tr>
<tr>
- <td>reference</td>
+ <td><code>reference</code></td>
<td>string | element</td>
- <td>'toggle'</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.js's <a href="https://popper.js.org/docs/v1/#referenceObject">referenceObject docs</a>.</td>
</tr>
<tr>
- <td>display</td>
+ <td><code>display</code></td>
<td>string</td>
- <td>'dynamic'</td>
+ <td><code>'dynamic'</code></td>
<td>By default, we use Popper.js for dynamic positioning. Disable this with <code>static</code>.</td>
</tr>
<tr>
- <td>popperConfig</td>
+ <td><code>popperConfig</code></td>
<td>null | object</td>
- <td>null</td>
+ <td><code>null</code></td>
<td>To change Bootstrap's default Popper.js config, see <a href="https://popper.js.org/docs/v1/#Popper.Defaults">Popper.js's configuration</a></td>
</tr>
</tbody>