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.