Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
is there a way for go to top?
-
Hi everyone,
Is there a way for go to top? How can i do this.
Thanks.
-
@fatihucom Can you specify a bit more? If you mean moving the scroll to the top, you need to change the
scrollTop
property as in any other HTML element.document.querySelector('ons-page#myCurrentPage').scrollTop = 0;
-
@Fran-Diox Yes, its about moving the scroll to the top.
I will try scrollTop = 0 …Thanks.