Skip to main content

ScrollToTopController

Purpose

Enable buttons/links to smooth scroll to the top of the document, or the nearest scrollable element.

Actions

ActionPurpose
scrollPerform the scroll

Targets

TargetPurposeDefault
---

Classes

ClassPurposeDefault
---

Values

ValueTypeDescriptionDefault
modeStringShould the controller scroll the document or the nearest scrollable elementdocument

Events

EventWhenDispatched onevent.detail
----

Side Effects

None

How to Use

See Also

Scroll Container Controller Scroll To Controller Scroll To Bottom Controller Scroll Into Focus Controller