ScrollToTopController
Purpose
Enable buttons/links to smooth scroll to the top of the document, or the nearest scrollable element.
Actions
Action | Purpose |
---|---|
scroll | Perform the scroll |
Targets
Target | Purpose | Default |
---|---|---|
- | - | - |
Classes
Class | Purpose | Default |
---|---|---|
- | - | - |
Values
Value | Type | Description | Default |
---|---|---|---|
mode | String | Should the controller scroll the document or the nearest scrollable element | document |
Events
Event | When | Dispatched on | event.detail |
---|---|---|---|
- | - | - | - |
Side Effects
None
How to Use
See Also
Scroll Container Controller Scroll To Controller Scroll To Bottom Controller Scroll Into Focus Controller