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
Answered! Go to the Best Answer.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
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?
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
It's not ideal, but we are investigating ways we can improve this in the future.