diff options
author | GeoSot <geo.sotis@gmail.com> | 2022-07-28 11:58:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 11:58:28 +0300 |
commit | db86607c088bd307aa21f4b4bd0258262262a4e4 (patch) | |
tree | 7acb80965491822be470802088d0ce85d4087e5c /site/content/docs/5.2/components/scrollspy.md | |
parent | 90c50ab198a4ecffdda6a5ff10fe58cab2c816b2 (diff) |
ScrollSpy: make the threshold option configurable (#36750)
* feat(ScrollSpy): make the threshold option configurable
Diffstat (limited to 'site/content/docs/5.2/components/scrollspy.md')
-rw-r--r-- | site/content/docs/5.2/components/scrollspy.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/site/content/docs/5.2/components/scrollspy.md b/site/content/docs/5.2/components/scrollspy.md index 5e329dc85a..b2461f0dae 100644 --- a/site/content/docs/5.2/components/scrollspy.md +++ b/site/content/docs/5.2/components/scrollspy.md @@ -380,6 +380,8 @@ const scrollSpy = new bootstrap.ScrollSpy(document.body, { | `rootMargin` | string | `0px 0px -40%` | Intersection Observer [rootMargin](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/rootMargin) valid units, when calculating scroll position. | | `smoothScroll` | boolean | `false` | Enables smooth scrolling when a user clicks on a link that refers to ScrollSpy observables. | | `target` | string \| jQuery object \| DOM element | | Specifies element to apply Scrollspy plugin. | +| `threshold` | array | `[0.1, 0.5, 1]` | `IntersectionObserver` [threshold](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/IntersectionObserver#threshold) valid input, when calculating scroll position.| + {{< /bs-table >}} {{< callout warning >}} |