components icon indicating copy to clipboard operation
components copied to clipboard

Virtual scrolling helpers / utilities.

Open jelbourn opened this issue 10 years ago • 94 comments

Similar to the md-virtual-repeat in Angular Material 1.

jelbourn avatar Jul 06 '16 19:07 jelbourn

Would be good to implement dynamic height (https://github.com/angular/material/issues/4314)

natcohen avatar Aug 30 '16 14:08 natcohen

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

elvisbegovic avatar Sep 24 '16 14:09 elvisbegovic

@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 avatar Oct 05 '16 20:10 DennisSmolek

@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

elvisbegovic avatar Oct 06 '16 05:10 elvisbegovic

@istiti Have you tried this https://github.com/vaadin/angular2-polymer

https://vaadin.com/blog/-/blogs/using-polymer-components-in-angular-2

laserus avatar Nov 09 '16 15:11 laserus

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

elvisbegovic avatar Nov 09 '16 15:11 elvisbegovic

ETA?

elvisbegovic avatar Nov 26 '16 17:11 elvisbegovic

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 avatar Dec 23 '16 01:12 Klaster1

@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.

bryanrideshark avatar Feb 14 '17 16:02 bryanrideshark

ngx-datatable has an implementation of virtual scroll.

I wonder if that couldn't be easily brought in?

bryanrideshark avatar Feb 14 '17 16:02 bryanrideshark

@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.

ghost avatar Feb 23 '17 15:02 ghost

@thibaultsavary we want to explore solutions for non fix-sized items in material2.

jelbourn avatar Mar 08 '17 17:03 jelbourn

@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.

bryanrideshark avatar Mar 08 '17 22:03 bryanrideshark

@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.

laserus avatar Mar 08 '17 22:03 laserus

@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

natcohen avatar Mar 12 '17 07:03 natcohen

+1 for innovation

ps:wait this feature since 5 months

elvisbegovic avatar Mar 16 '17 06:03 elvisbegovic

+1 for the flexible height.

ronwang01 avatar Mar 22 '17 22:03 ronwang01

@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?

bryanrideshark avatar Mar 22 '17 22:03 bryanrideshark

+1 for the flexible height

harivrdhn avatar Mar 23 '17 08:03 harivrdhn

+1 need this badly!

robconrad avatar Mar 24 '17 23:03 robconrad