Ember Virtual List Component
✓ Published0🌍 Public
RRandomEtc
Last edited Jan 21, 2016
Created on Jan 21, 2016
This example demonstrates an Ember.js virtual list component that renders only the items visible within a scrollable container, improving performance for large datasets. It uses the Ember component API with computed properties and Handlebars templates, along with jQuery for scroll event handling and DOM measurements. The code generates a list of 1,000 random names and positions each row absolutely within a scroller element. As the user scrolls, the component calculates start and end indices based on scroll offset and container height, updating the visible items dynamically.
AI-generated description