Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Expose virtual index

Compare
Choose a tag to compare
@jasonmit jasonmit released this 30 Aug 21:11
· 166 commits to master since this release
{{#virtual-each
  height=200 // required: total height
  itemHeight=36 // required: row height
  onBotttom=(action 'handlePageBottom') // optional: invoked when the scroller hits the bottom
  positionIndex=0 // optional: used to scroll to a specific item index
  items=items as |item actualIndex virtualIndex|
}}
  {{actualIndex}} {{virtualIndex}} {{item}}
{{/virtual-each}}