Open ionitron-bot[bot] opened 5 years ago
Same problem how can I use ion-virtual-scroll with grid ?
same problem, please help
same here
you can have multi column view inside virtual scroll. For example, for a two column view inside virtual scroll make each of the virtual scroll item to be a pair of our original items and show them one after another in the single row. For example,
<ion-virtual-scroll [items]="pairs">
<div class="row" *virtualItem="let pair">
<div class="column">
{{ pair[0] }}
</div>
<div class="column">
{{ pair[1] }}
</div>
</div>
</ion-virtual-scroll>
Supporting dynamic multiple columns in ionic virtual scroll dev.to article
stackblitz: Try to resize screen
Original issue by @gordyr on 2018-07-10T13:21:23Z
Bug Report
Ionic Info Run
ionic info
from a terminal/cmd prompt and paste the output below.Describe the Bug Virtual scrolling no longer appears to work with a grid.
In Ionic 3.9.2 applying a virtual scroller to a grid was simple:
In version 4, this doesn't appear to be possible. You can no longer use an
<ion-grid>
as the root scroller as it has to be an<ion-virtual-scroll>
element, and even width explicit widths and heights set to each individual element, I cannot get the elements to layout horizontally, in a grid/column like fashion, at all.Is there a new method of laying out the items in say 3 or 4 columns with the new virtual scroller? Or is that functionality no longer present?