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

Adds support for {{else}}

Compare
Choose a tag to compare
@jasonmit jasonmit released this 01 Nov 03:29
· 152 commits to master since this release
{{#virtual-each
  height=200 // required: total height
  itemHeight=36 // required: row height
  onScrollBottomed=(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|
}}
  <div class="person-row">
    <img src={{item.picture}} />
    <div>
      <div>{{actualIndex}}. {{item.name.last}}, {{item.name.first}}</div>
      <div class="company">{{item.company}}</div>
    </div>
  </div>
{{else}}
 <strong>No results</strong>
{{/virtual-each}}