07-30-2018 13:41
07-30-2018 13:41
I have multiple views. When I return to home view I would like to reset position/pagination to first page for panoramaview.
I tried
document.getElementById('container-home').value = 0;
But it does not change page.
How to do this?
Answered! Go to the Best Answer.
08-07-2018 17:52
08-07-2018 17:52
Hard to tell without seeing more code, but if you definitely have a handle on the container, then that should be valid.
<use id="container-home" href="#panoramaview">
Are you using template symbols? https://dev.fitbit.com/build/guides/user-interface/svg/#template-symbols
If so, you might need to get a handle on the instance, then use that to get a handle on the container of your panorama.
Please provide more of the gui file
08-07-2018 17:52
08-07-2018 17:52
Hard to tell without seeing more code, but if you definitely have a handle on the container, then that should be valid.
<use id="container-home" href="#panoramaview">
Are you using template symbols? https://dev.fitbit.com/build/guides/user-interface/svg/#template-symbols
If so, you might need to get a handle on the instance, then use that to get a handle on the container of your panorama.
Please provide more of the gui file
08-11-2018 12:28
08-11-2018 12:28
#JonFitbit I double checked code and it works. I was not sure that this was the correct way.