This is the only way I can think of...
<ons-scroller style="width:100%;height:300px;">
<a name="top"></a>
:
: omission
:
<a href="#top">To the top</a>
</ons-scroller>
Additional information
If you can use AngularJS, you can also call $location.hash
, $anchorScroll
when you press the button.
Reference link Initial location of ons-list
© 2024 OneMinuteCode. All rights reserved.