Virtual scrolling helpers / utilities.
Similar to the md-virtual-repeat in Angular Material 1.
Would be good to implement dynamic height (https://github.com/angular/material/issues/4314)
Does someone know a repo do this virtual scroll instead of ngFor ? Today we have a very large set of data, it's primordial to begin/HAVE this feature instead of something like "tooltip" or so ! @jelbourn Displaying big data is important today please begin with something hard instead of "tooltip"
ps: https://developers.google.com/web/updates/2016/07/infinite-scroller
@istiti Polymer has <iron-list> Here and Demos Here
Please recognize that you are asking about a feature that most projects don't need/use and is a technical challenge to put into a library in a fully formed, universal way... You could probably write your own version, but it might not be what I would need...
Tooltip is a super easy use case for portals and overlay's which are core to everything from menu's to dialogs so is rather simple to release and common enough that most use cases fit.
The link you gave has a link to his source code and it's only 400ish lines. I bet you could make a ng2 version and contributing it back to the community for free would be awesome!
@DennisSmolek "Infinite scrollers pop up all over the internet. Google Music’s artist list is one, Facebook’s timeline is one and Twitter’s live feed is one as well" IMHO infinite scroll is technik people need to have to discharge their DOM! Still more today we have big data.
Update
Impossible to get iron list working (very comlpicate) if you have an github repo doing virtual Dom, you're welcome
@istiti Have you tried this https://github.com/vaadin/angular2-polymer
https://vaadin.com/blog/-/blogs/using-polymer-components-in-angular-2
yes but this add more complexities to my app ... really a bad choice but I find angular2-data-table which do work very awesome thanks
ETA?
I've ported the old one and wonder if I there's some form of spec available so I can align my implementation with it. The mdVirtualRepeat is almost (as in line-to-line) the same, but structural repeater had to be made by scratch based on ngFor and mdVirtualRepeat.
@Klaster1 , any chance you could fork material2 and add your work to the library? If there was at least an initial PR we could get some momentum going behind this.
ngx-datatable has an implementation of virtual scroll.
I wonder if that couldn't be easily brought in?
@jelbourn I've made a naive implementation of a templatizable-virtual-repeat that work great for basic use-cases. However, the item repeated must have a fixed height. For now the virtual-repeat only supports: itemNumber * itemHeight / maxHeight of HTMLElement of the browser which is 33554400px in Chrome. So the number of items to be virtualized is still limited and relative to their heights.
If this sounds good to you, I can make a PR with the initial version and if the components pleases most I can work on the maxHeight issue.
Let me know if you're interested.
@thibaultsavary we want to explore solutions for non fix-sized items in material2.
@jelbourn is that the sort of thing that can be implemented in a version bump down the road? Variable height is a tricky issue to solve with virtual repeaters, and I'm not sure insisting upon its inclusion is a realistic goal.
If we could at least get feature parity with Angular Material 1.0, it would be a massive help; Our company is pretty dependent on md-virtual-repeat, and its lack of support in Angular Material 2.0 is a bit of a blocker for us to upgrade to Angular ^2.
To be sure, flexible height would be a great feature, I'm just not sure it's as much of a requirement as having virtual repeat in the first place.
@jelbourn I fully agree with @bryanrideshark for virtual scroll to be exact in height is not top priority. Exact position affects scrollbar position on the right, but normally it is only a visual effect.
@bryanrideshark & @laserus I don't agree with you guys... if the team implements the v1 (from material 1), a better version will probably never be explored! The team's time is limited and they should focus on innovation rather than existing technologies
+1 for innovation
ps:wait this feature since 5 months
+1 for the flexible height.
@natcohen all of what will / will not happen is speculation unless we're actually decision makers in the matter, IE, core members of the team.
As this is a blocking issue for other things (autocomplete, md-select), would someone on the team be able to provide some sort of feedback as to where this issue stands?
+1 for the flexible height
+1 need this badly!