This repository has been archived by the owner on Jun 8, 2020. It is now read-only.
Releases: jasonmit/virtual-each
Releases · jasonmit/virtual-each
Position Index Updates
Bound enumerable object/array can be a Promise
{{#virtual-each boundPromise ..}}
Margin instead of padding, positional params, deps updated
Persist positionIndex
- 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}}
Expose virtual index
{{#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
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
prevent position index from ever going out of range when passed as attr
Adding positionIndex attribute
Scrolls to a specific item:
Bugfix where empty items can be at the bottom of collection
0.0.6 version bump