From a749db8d0f216491cfefb3849891d93f89b775f7 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 11 Oct 2022 18:45:17 +0000 Subject: composer update twbs --- .../twbs/bootstrap/site/content/docs/5.2/components/scrollspy.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vendor/twbs/bootstrap/site/content/docs/5.2/components/scrollspy.md') diff --git a/vendor/twbs/bootstrap/site/content/docs/5.2/components/scrollspy.md b/vendor/twbs/bootstrap/site/content/docs/5.2/components/scrollspy.md index 5e329dc85..53e3fa0d3 100644 --- a/vendor/twbs/bootstrap/site/content/docs/5.2/components/scrollspy.md +++ b/vendor/twbs/bootstrap/site/content/docs/5.2/components/scrollspy.md @@ -377,9 +377,11 @@ const scrollSpy = new bootstrap.ScrollSpy(document.body, { {{< bs-table "table" >}} | Name | Type | Default | Description | | --- | --- | --- | --- | -| `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. | +| `rootMargin` | string | `0px 0px -25%` | 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. | +| `target` | string, DOM element | `null` | 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 >}} @@ -395,7 +397,7 @@ To keep backwards compatibility, we will continue to parse a given `offset` to ` | Method | Description | | --- | --- | | `dispose` | Destroys an element's scrollspy. (Removes stored data on the DOM element) | -| `getInstance` | *Static* method to get the scrollspy instance associated with a DOM element | +| `getInstance` | *Static* method to get the scrollspy instance associated with a DOM element. | | `getOrCreateInstance` | *Static* method to get the scrollspy instance associated with a DOM element, or to create a new one in case it wasn't initialized. | | `refresh` | When adding or removing elements in the DOM, you'll need to call the refresh method. | {{< /bs-table >}} -- cgit v1.2.3