aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2022-07-28 11:58:28 +0300
committerGitHub <[email protected]>2022-07-28 11:58:28 +0300
commitdb86607c088bd307aa21f4b4bd0258262262a4e4 (patch)
tree7acb80965491822be470802088d0ce85d4087e5c /site/content/docs
parent90c50ab198a4ecffdda6a5ff10fe58cab2c816b2 (diff)
downloadbootstrap-db86607c088bd307aa21f4b4bd0258262262a4e4.tar.xz
bootstrap-db86607c088bd307aa21f4b4bd0258262262a4e4.zip
ScrollSpy: make the threshold option configurable (#36750)
* feat(ScrollSpy): make the threshold option configurable
Diffstat (limited to 'site/content/docs')
-rw-r--r--site/content/docs/5.2/components/scrollspy.md2
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 5e329dc85..b2461f0da 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 >}}