Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PanoramaView Reset position

ANSWERED

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?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

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

Best Answer
0 Votes

#JonFitbit I double checked code and it works. I was not sure that this was the correct way.

Best Answer
0 Votes