diff options
| author | Troy Morehouse <[email protected]> | 2017-12-12 05:28:30 -0400 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2017-12-12 11:28:30 +0200 |
| commit | 8839c03865f02cf9c98443f4e07ac477985151ed (patch) | |
| tree | 6fb5b971ca225f392d9b051a9824517583767911 /docs | |
| parent | a7e64c84aec65fe38b5a9323638e62d513b64ce8 (diff) | |
| download | bootstrap-8839c03865f02cf9c98443f4e07ac477985151ed.tar.xz bootstrap-8839c03865f02cf9c98443f4e07ac477985151ed.zip | |
dropdown: add boundary config option (#24976)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/4.0/components/dropdowns.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index cde123b00..926729a3d 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -723,9 +723,17 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <td>true</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/popper-documentation.html#modifiers..flip.enabled">flip docs</a>.</td> </tr> + <tr> + <td>boundary</td> + <td>string | element</td> + <td>'scrollParent'</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/popper-documentation.html#modifiers..preventOverflow.boundariesElement">preventOverflow docs</a>.</td> + </tr> </tbody> </table> +Note when `boundary` is set to any value other than `'scrollParent'`, the style `position: static` is applied to the `.dropdown` container. + ### Methods | Method | Description | |
