Releases: jasonmit/virtual-each
Releases · jasonmit/virtual-each
Safely set style attributes
onBottom action
{{#virtual-each
height=200
itemHeight=36
onBotttom=(action 'handlePageBottom')
items=items as |item index|
}}
<div class="person-row">
<img src={{item.picture}} />
<div>
<div>{{index}} {{item.name.last}}, {{item.name.first}}</div>
<div class="company">{{item.company}}</div>
</div>
</div>
{{/virtual-each}}
Expose the underlying index, not the virtualized index
{{#virtual-each
height=200
itemHeight=36
items=items as |item index|
}}
<div class="person-row">
<img src={{item.picture}} />
<div>
<div>{{index}} {{item.name.last}}, {{item.name.first}}</div>
<div class="company">{{item.company}}</div>
</div>
</div>
{{/virtual-each}}