I’m not having any luck. The docs for the scrollable
widget and tm-scroll
message hint that it’s possible to have a button that could return the scrollable area back to the top. I’d like to have an “always visible” button in the scroll area that returns the scroll area back to the top. Is there a way?
The following is one variation that’s I’ve tried unsuccessfully.
<$scrollable>
<div id="list-top"></div>
<!-- Here is a list widget generating a lot of lines -->
<$button>
<$action-sendmessage $message="tm-scroll" $name="selector" $value="#list-top"/>
Back to Top
</$button>
</$scrollable>