Hello,
I am just looking for an example of how to programmatically reset (or even set) the position of a scrollview.
I am able to access the scrollview via this.popup.scrollview
(where popup is an entity attribute) However, I cannot figure out the syntax of setting the position.
Thanks,
Justin
Hi @justinISO and welcome,
The way I was able to do this is find my vertical or horizontal scrollbar entity, and set it’s current position on the scrollbar component like this:
this.app.root.findByName('MyVerticalScrollbar').scrollbar.value = 0.7;
The position is from 0 - 1 (top - bottom or left - right).
1 Like
Thank you! Setting the scrollbar value was the piece I was missing.
1 Like