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 ?
05-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
05-16-2018 07:14
05-16-2018 07:14
There is currently no way to add elements programmatically.
05-16-2018 10:57
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