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

Show/Hide entire SVG Layouts & Multi Page Apps

ANSWERED

Hello,

 

I wondered if it was possible to show/hide entire SVG layouts (possibly on a tap action)?

 

The use case would be similar to that on Pebble when having a clock face that switches to showing the date (or other information) on shake.

 

I'm also curious if this could be used for multi-page apps or if there is a better way to do this?

 

Thanks,

 

NiVZ

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Showing and hiding elements is the current way to do this. Give an element an ID, then toggle its display property with buttons or touch events.

 

https://dev.fitbit.com/guides/user-interface/javascript/#showing-hiding-an-element

View best answer in original post

Best Answer
3 REPLIES 3

Showing and hiding elements is the current way to do this. Give an element an ID, then toggle its display property with buttons or touch events.

 

https://dev.fitbit.com/guides/user-interface/javascript/#showing-hiding-an-element

Best Answer

@JonFitbit

In complex apps, this may become a bit too disorganized and maybe consume more resources (not sure about this) than necessary. Is there going to be another way, like adding multiple views or something like that?

Best Answer

It's not ideal, but we are investigating ways we can improve this in the future.

Best Answer