Lazy loading table?


What would be a good approach to implementing a “lazy loading” table with pagination and infinite scroll in JUCE i.e. where elements are added dynamically to the table on scroll, along the lines of jQuery’s jScroll. Is it best to take TableListBox as a starting point or build something custom?



It could probably be done fairly easily with a ListBox - you can dynamically resize them, so you’d just need to add a dummy item at the bottom that causes your model to load more when it gets shown.