This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

WidgetMessage: tm-scroll

14 octobre 2020 à 15h24

The tm-scroll message causes the surrounding scrollable container to scroll to the specified DOM node into view. The tm-scroll is handled in various places in the core itself, but can also be handled by a ScrollableWidget.

NameDescription
targetTarget DOM node the scrollable container should scroll to (note that this parameter can only be set via JavaScript code)
selector Depuis : 5.1.23 Optional string CSS selector as an alternate means of identifying the target DOM node
animationDuration Depuis : 5.2.2 Optional number specifying the animation duration in milliseconds for the scrolling. Defaults to the global animation duration.

Set animationDuration to 0 to scroll without animation