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

TileList Interface seems to have missing methods and lacking in documentation.

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..

  1. getTile would be nice to have from many perspectives or remove from documentation. Whats the plan?
  2. What 'type' does the obtainTile() method want?
  3. Is insert() the actual method that in the documentation is called insertTile()

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

 

https://github.com/kmpm | Using: Ionic | Retired: Alta
Best Answer
5 REPLIES 5

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 Answer
0 Votes

I'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.

https://github.com/kmpm | Using: Ionic | Retired: Alta
Best Answer

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.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

I 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 Answer
0 Votes

Unfortunately, it doesn't seem possible to reorder the tiles in a virtual tile list.

Peter McLennan
Gondwana Software
Best Answer
0 Votes