diff --git a/site/content/docs/5.0/components/dropdowns.md b/site/content/docs/5.0/components/dropdowns.md index b2abbc7bd..37c3a74c1 100644 --- a/site/content/docs/5.0/components/dropdowns.md +++ b/site/content/docs/5.0/components/dropdowns.md @@ -901,9 +901,9 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap array | string | function [0, 0] -

Offset of the dropdown relative to its target.

-

When a function is used to determine the offset, it is called with an object containing the popper instance, the refecence Element and the placement as its first argument. The function must return an array with two numbers: [skidding, distance]. The triggering element DOM node is passed as the second argument.

-

For more information refer to Popper.js's offset docs.

+

Offset of the dropdown relative to its target. You can pass a string in data attributes with comma separated values like: data-bs-offset="10,20"

+

When a function is used to determine the offset, it is called with an object containing the popper placement, the reference, and popper rects as its first argument. The triggering element DOM node is passed as the second argument. The function must return an array with two numbers: [skidding, distance].

+

For more information refer to Popper's offset docs.

diff --git a/site/content/docs/5.0/components/popovers.md b/site/content/docs/5.0/components/popovers.md index ccaf1f63f..ddfc6c130 100644 --- a/site/content/docs/5.0/components/popovers.md +++ b/site/content/docs/5.0/components/popovers.md @@ -267,6 +267,16 @@ Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` opt null Here you can supply your own sanitize function. This can be useful if you prefer to use a dedicated library to perform sanitization. + + offset + array | string | function + [0, 0] + +

Offset of the popover relative to its target. You can pass a string in data attributes with comma separated values like: data-bs-offset="10,20"

+

When a function is used to determine the offset, it is called with an object containing the popper placement, the reference, and popper rects as its first argument. The triggering element DOM node is passed as the second argument. The function must return an array with two numbers: [skidding, distance].

+

For more information refer to Popper's offset docs.

+ + popperConfig null | object diff --git a/site/content/docs/5.0/components/tooltips.md b/site/content/docs/5.0/components/tooltips.md index 8f5aac533..ea4762a67 100644 --- a/site/content/docs/5.0/components/tooltips.md +++ b/site/content/docs/5.0/components/tooltips.md @@ -292,6 +292,16 @@ Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` opt null Here you can supply your own sanitize function. This can be useful if you prefer to use a dedicated library to perform sanitization. + + offset + array | string | function + [0, 0] + +

Offset of the tooltip relative to its target. You can pass a string in data attributes with comma separated values like: data-bs-offset="10,20"

+

When a function is used to determine the offset, it is called with an object containing the popper placement, the reference, and popper rects as its first argument. The triggering element DOM node is passed as the second argument. The function must return an array with two numbers: [skidding, distance].

+

For more information refer to Popper's offset docs.

+ + popperConfig null | object diff --git a/site/content/docs/5.0/migration.md b/site/content/docs/5.0/migration.md index 49d11a989..850e27ab6 100644 --- a/site/content/docs/5.0/migration.md +++ b/site/content/docs/5.0/migration.md @@ -20,6 +20,7 @@ toc: true ### JavaScript +- Restored `offset` option for Dropdown, Popover and Tooltip plugins. - The default value for the `fallbackPlacements` is changed to `['top', 'right', 'bottom', 'left']` for better placement of popper elements. ## v5.0.0-beta1