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

Dynamically added tile-list-item

ANSWERED

Is there any way to create dynamically tile-list and also added tile-items on it?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

You can't dynamically create a list, but the items can be dynamic.

See the virtual tile list. https://dev.fitbit.com/build/guides/user-interface/svg-components/views/#virtual-tile-list

View best answer in original post

Best Answer
0 Votes
6 REPLIES 6

You can't dynamically create a list, but the items can be dynamic.

See the virtual tile list. https://dev.fitbit.com/build/guides/user-interface/svg-components/views/#virtual-tile-list

Best Answer
0 Votes

Hi,

I have added checkboxes list item dynamically but checkboxes are not clickable how can I "checkbox item" clickable and how can I identify checked or unchecked events from tile-list-item.

 

Screenshot 2018-11-16 at 4.34.52 PM.png

 

Best Answer
0 Votes

The example has some javascript for the onclick event https://dev.fitbit.com/build/guides/user-interface/svg-components/views/#checkbox-tile

 

If you're still struggling, can you put the project somewhere so I can see the code?

Best Answer
0 Votes

@JonFitbit  I want to update or refresh tile-list-item dynamically. 

Actually, I have bind Virtual tile-list to the data model when the data model change then the virtual list should be updated accordingly.

In Android, we are using notifyDataSetChanged().

Is there any method for Virtual Tile List???

 

Best Answer
0 Votes

When I edit 4 text fields in the virtual-tile-list-view, they disappear. Any idea why that might be happening?

Best Answer
0 Votes

Hye can you please post your code what you have done for dynamic list with checkbox?

 

Best Answer