roeierez / infinite-list

Infinite list in javascript that scrolls in 60fps
623 stars 45 forks source link

Add/remove items from dataset #7

Closed rodolfoag closed 8 years ago

rodolfoag commented 9 years ago

Is there a way to add items do the list after pageFetcher->pageCallback had been called with hasMore = false? If the list is fully rendered and an item from the dataset is removed, how do I removed it from the list?

Thx!

roeierez commented 8 years ago

You just need to call refresh(). This will trigger re-render the new data. Before invoking refresh, make sure the itemRenderer is updated to render the new items.

roeierez commented 8 years ago

Was that helpful and working for you?