diff options
author | Jason Golieb <j@golieb.net> | 2019-02-05 11:31:18 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-02-05 11:31:18 +0300 |
commit | e44d0475e07113dfb21b555658de6eac53083f98 (patch) | |
tree | c35b6620da0cb0b3c9948d6a0a56800e9ca8e22a /site/docs | |
parent | 1139f62ca26be2057ff15550061adf6ac201b2a8 (diff) |
Move dropdown offset function logic into private function. (#28138)
Diffstat (limited to 'site/docs')
-rw-r--r-- | site/docs/4.2/components/dropdowns.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/site/docs/4.2/components/dropdowns.md b/site/docs/4.2/components/dropdowns.md index 6011bd9896..2b5ee2014e 100644 --- a/site/docs/4.2/components/dropdowns.md +++ b/site/docs/4.2/components/dropdowns.md @@ -845,7 +845,11 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <td>offset</td> <td>number | string | function</td> <td>0</td> - <td>Offset of the dropdown relative to its target. For more information refer to Popper.js's <a href="https://popper.js.org/popper-documentation.html#modifiers..offset.offset">offset docs</a>.</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> + <p>For more information refer to Popper.js's <a href="https://popper.js.org/popper-documentation.html#modifiers..offset.offset">offset docs</a>.</p> + </td> </tr> <tr> <td>flip</td> |