material icon indicating copy to clipboard operation
material copied to clipboard

virtualRepeat: enhance list and card to support infinite lists.

Open austincondiff opened this issue 10 years ago • 18 comments

I would really like md-list-grid to work with a dynamic data source on a virtual repeat with infinite scroll. Let me know if further clarification is needed.

austincondiff avatar Jan 20 '16 02:01 austincondiff

+1

arsonik avatar Jan 21 '16 09:01 arsonik

+1

clarson0 avatar Jan 22 '16 04:01 clarson0

Did you mean md-grid-list or md-list ?

ThomasBurleson avatar Jan 27 '16 04:01 ThomasBurleson

I'd +1 for md-grid-list !

arsonik avatar Jan 27 '16 10:01 arsonik

+1 with md-grid-list, this feature will solve lots of performance issues.

ashokyadav006 avatar Jan 28 '16 07:01 ashokyadav006

+1

henkjurriens avatar Feb 12 '16 18:02 henkjurriens

+1

On Fri, Feb 12, 2016 at 12:39 PM Henk Jurriens [email protected] wrote:

+1

— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/6774#issuecomment-183444285.

rponnuru0518 avatar Feb 12 '16 22:02 rponnuru0518

+1

doroudi avatar Mar 02 '16 13:03 doroudi

+1

raphaelnew avatar Mar 13 '16 00:03 raphaelnew

+1

JonnyHeavey avatar Mar 16 '16 11:03 JonnyHeavey

I had this working in 1.1.0-RC4 like this:

<style>
.datatable .align-left figure {
      justify-content: flex-start;
}

.datatable figure span {
  padding: 16px;
}
</style>

<md-grid-list class="datatable" md-cols="4" md-row-height="40px" md-gutter="8px" style="height:30px">
    <md-grid-tile class="align-left">Name</md-grid-tile>
    <md-grid-tile class="align-left">Phone</md-grid-tile>
    <md-grid-tile class="align-left">Email</md-grid-tile>
    <md-grid-tile class="align-left">Address</md-grid-tile>
  </md-grid-list>
  <md-divider></md-divider>
  <md-virtual-repeat-container flex>
      <md-grid-list md-virtual-repeat="contact in ctrl.loader" md-on-demand="true" md-item-size="54" class="datatable" md-cols="4" flex md-row-height="54px" md-gutter="8px" ng-click="ctrl.editContact(contact)" md-ink-ripple>
          <md-grid-tile class="align-left">{{contact.name}}</md-grid-tile>
          <md-grid-tile class="align-left">{{contact.phone}}</md-grid-tile>
          <md-grid-tile class="align-left">{{contact.email}}</md-grid-tile>
          <md-grid-tile class="align-left">{{contact.address}}</md-grid-tile>
          <md-divider></md-divider>
    </md-grid-list>
</md-virtual-repeat-container>

michaelkrog avatar Apr 26 '16 08:04 michaelkrog

@michaelkrog, I believe this is not the intended question. @acondiff related to a dynamic list of tiles that could, according to the available width of the container fill the tiles and then go to the next row. What you had presented is essentially, rows of which each row is a record and will only display 4 pieces of information.

gkohen avatar Jun 23 '16 22:06 gkohen

Any update on this? I think @michaelkrog's answer is not the corresponding solution for this topic.

sykorax avatar Aug 03 '16 05:08 sykorax

+1 this is necessary for any scenario involving a list of md-cards with a responsive layout. Which I believe will be needed in most applications written with Angular Material.

Should we create a new issue to see if they can consider it? I believe this was closed in the "spring cleaning".

leolozes avatar Aug 16 '16 09:08 leolozes

+1 We also need this!

QuentinLuc avatar Aug 23 '16 09:08 QuentinLuc

+1

wallfacer005-vip avatar Aug 26 '16 07:08 wallfacer005-vip

I think Android's ListView implementation is what we should target. Essentially, it's like we have with virtual repeater, but can hold items without preset heights. ListViewItem is overloaded and essentially, we just supply templates. Dynamic height is somewhat tricky, but not too hard to implement.

Basically, we have two components for what Android does in one.

clshortfuse avatar Sep 11 '16 23:09 clshortfuse

There are unfortunately no plans to support dynamically sized items within virtual repeat. It is recommended to find a solution outside of AngularJS Material for this requirement.

Splaktar avatar Mar 01 '18 07:03 Splaktar