Skip to main content
B
3mo ago

Add items to scroll list at runtime

With the new scroll feature, is it possible to add and remove items to the list at runtime? I have a use case where an end user can save items and they have to be added to or deleted respectively.

1 reply
3mo ago

Not yet, but that ability is coming soon with data binding.

Right now you can fake this functionality if you already know the max number of items that could go in the list. Let's say you have a list with up to 10 cards. You could add all 10 cards to the list, but when the state machine starts, all 10 items are hidden. "Adding" a new one is actually just unhiding an existing one.