roeierez / infinite-list

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

Infinite Grid #15

Open ardoramor opened 7 years ago

ardoramor commented 7 years ago

Excellent library! Definitely a huge help for large data sets! I was wondering if the library can be extended to support grids? I realize that it is an open-ended question as there are different kinds of grids. In my case, the elements are of the same width and height. However, because there are many of them and all contain an image, plain rendering kills CPU while list rendering makes the item too wide. Are there plans to support grid rendering?

roeierez commented 7 years ago

Thanks, Currently my main efforts are going to full support of native scroller. I am working on the native_scroller branch which will be merged to the master soon. After that I am opened to suggestions but I have limited time so even if supporting grid will be the next feature it will no be delivered fast. As for now I can help with suggestions how to use this list for your use case. If you have fixed height and width why don't you render a list item that is divided to columns and the first item will be the headers columns? If it is not the case let me know what I am missing and I will try to help as much as I can. On any case I suggest that you work on the native_scroller branch it has some bug fixes that are not yet merged to the master.