diff options
author | joke2k <daniele.faraglia@gmail.com> | 2020-12-12 03:54:29 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-01-28 13:23:33 +0300 |
commit | 881f43a3b928e792185ed388e2589c73ea8c4be6 (patch) | |
tree | f37402a50b60bd26be4a94a055e3a8a57f3bb9a3 /site | |
parent | 51ca9a9e2f3b19ccdcd2ff4c7d0d8ec42a69d3db (diff) |
Restore offset option for dropdown component
Diffstat (limited to 'site')
-rw-r--r-- | site/content/docs/5.0/components/dropdowns.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/site/content/docs/5.0/components/dropdowns.md b/site/content/docs/5.0/components/dropdowns.md index a50dcf0f5c..b2abbc7bd8 100644 --- a/site/content/docs/5.0/components/dropdowns.md +++ b/site/content/docs/5.0/components/dropdowns.md @@ -897,6 +897,16 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <td>By default, we use Popper for dynamic positioning. Disable this with <code>static</code>.</td> </tr> <tr> + <td><code>offset</code></td> + <td>array | string | function</td> + <td><code>[0, 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 <code>popper</code> instance, the <code>refecence</code> Element and the <code>placement</code> as its first argument. The function must return an array with two numbers: <code>[<a href="https://popper.js.org/docs/v2/modifiers/offset/#skidding-1">skidding</a>, <a href="https://popper.js.org/docs/v2/modifiers/offset/#distance-1">distance</a>]</code>. The triggering element DOM node is passed as the second argument.</p> + <p>For more information refer to Popper.js's <a href="https://popper.js.org/docs/v2/modifiers/offset/#options">offset docs</a>.</p> + </td> + </tr> + <tr> <td><code>popperConfig</code></td> <td>null | object</td> <td><code>null</code></td> |