05-15-2018 04:59
05-15-2018 04:59
So I think innerHTML or any such functions do not work (off google). Are there any solutions to adding (for example) buttons to a list of buttons programatically ?
Best Answer05-15-2018 05:58
05-15-2018 05:58
I am not sure I understand the question. Do you want to create a button dynamically?
innerHTML is not working like this, if you want innerHTML use document.getElementById('something').text
Best Answer05-16-2018 07:14
05-16-2018 07:14
There is currently no way to add elements programmatically.
05-16-2018 10:57
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.
05-16-2018 10:57
If it's a list of buttons, you might be able to make it work with the Virtual Tile List.
It's built from an array, so you could add to the array, then tell it to redraw.
Some examples here https://community.fitbit.com/t5/SDK-Development/Example-for-VirtualTileList/m-p/2677410
Best Answer