I am playing around with TileList and it seems to render as expected but when examining the js interface I found something strange.
When trying to programmatically add tiles using obtainTile + insertTile I had a hard time figuring out what the 'type' string obtainTile wanted (missing documentation here) so I thought I would use the getTile() method instead and examine the object returned. This only to find that getTile is not defined on the list object (and for that matter insertTile() does not exist either but a method called insert())
So..
Some of these only Fitbit staff could answer but do anyone else out there have any experience with TileList and hopefully shine some light on my issues?
Thanks in advance.
kmpm
Watching this topic with great interest ....
There are a couple of threads about tilelists (one of which I resurrected Friday) about documentation for this component. It is being used throughout a number of fitbit apps so someone somewhere (fitbit) has some knowledge that you would think could be shared without having to plead .....
Best AnswerI'v made a repository on github with my notes and sample project for things I try out.
It's not complete and all notes / samples can be changed at any time and might very well be wrong.
https://github.com/kmpm/fitbit-sdk-escapades/
My plan is to keep adding to that repo with general Fitbit SDK and related stuff.
I'm assuming that, if implemented, getTile() would be the way to determine the sequence of tiles after the user has moved them around. If so, it's rather important!
As I interpret the documentation, it seems to imply that getTile() is a member of document rather than TileList. I've tried that and it isn't there either. When updating the documentation, it would be good to clarify which class/interface getTile() belongs to.
Best AnswerI had my issues with this, too.
But you can find help on the TiteList here: https://dev.fitbit.com/build/guides/user-interface/components/views/
You need to use the Virtual Tile List for dynamic lists 😉
Best AnswerUnfortunately, it doesn't seem possible to reorder the tiles in a virtual tile list.
Best Answer