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

Releases: jasonmit/virtual-each

Position Index Updates

08 Feb 20:17
Compare
Choose a tag to compare

You can view the work that was done between v0.2.2 and v0.2.1 here.

  • README updates
  • Position Index can return 0 now
  • Fix for persisting scrollTop on item updates

Bound enumerable object/array can be a Promise

08 Dec 03:47
Compare
Choose a tag to compare

{{#virtual-each boundPromise ..}}

Margin instead of padding, positional params, deps updated

05 Dec 06:19
Compare
Choose a tag to compare
  • Use margin instead of padding [https://github.com//pull/19]
  • Add support for positional param [https://github.com//pull/21]
  • Update npm and bower deps [https://github.com//pull/20]

Persist positionIndex

17 Nov 17:39
Compare
Choose a tag to compare
  • Persist positionIndex for case when items array is updated
  • Setting a position index past the maximum top index sets the last visible item flush with the bottom of the visibleContent.
  • Fixed issues where _visibleItemCount was greater than the number of items to display

Adds support for {{else}}

01 Nov 03:29
Compare
Choose a tag to compare
{{#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}}

Expose virtual index

30 Aug 21:11
Compare
Choose a tag to compare
{{#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}}

Fixing index block param

28 Aug 07:23
Compare
Choose a tag to compare
0.0.9

Merge branch 'master' of github.com:jasonmit/virtual-each

prevent position index from ever going out of range when passed as attr

28 Aug 07:06
Compare
Choose a tag to compare

prevent position index from ever going out of range when passed as attr

Adding positionIndex attribute

27 Aug 23:42
Compare
Choose a tag to compare

Scrolls to a specific item:

{{#virtual-each
  height=200
  itemHeight=36
  positionIndex=0
  items=items as |item index|
}}
  {{item}}
{{/virtual-each}}

Bugfix where empty items can be at the bottom of collection

27 Aug 07:27
Compare
Choose a tag to compare