diff options
Diffstat (limited to 'vendor/twbs/bootstrap/site/content/docs/5.2/components/scrollspy.md')
-rw-r--r-- | vendor/twbs/bootstrap/site/content/docs/5.2/components/scrollspy.md | 8 |
1 files changed, 3 insertions, 5 deletions
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 53e3fa0d3..5e329dc85 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,11 +377,9 @@ const scrollSpy = new bootstrap.ScrollSpy(document.body, { {{< bs-table "table" >}} | Name | Type | Default | Description | | --- | --- | --- | --- | -| `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. | +| `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, 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. | - +| `target` | string \| jQuery object \| DOM element | | Specifies element to apply Scrollspy plugin. | {{< /bs-table >}} {{< callout warning >}} @@ -397,7 +395,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 >}} |