mdDataTable icon indicating copy to clipboard operation
mdDataTable copied to clipboard

Search not working with ng-repeat in mdt-row

Open AdnanInayat opened this issue 8 years ago • 4 comments

Please check this pen: http://codepen.io/anon/pen/qRgPeR?editors=1000

I am trying to accomplish the search with ng-repeat but its not working. thank you

AdnanInayat avatar Feb 14 '17 08:02 AdnanInayat

Same here.

fysp11 avatar Mar 06 '17 18:03 fysp11

same here

adirizky54 avatar Mar 29 '17 14:03 adirizky54

You need to get rid of

    <mdt-row ng-repeat="n in filteredItems">
      <mdt-cell>{{n.name}}</mdt-cell>
      <mdt-cell>{{n.calories}}</mdt-cell>
      <mdt-cell>{{n.fat}}</mdt-cell>
      <mdt-cell>{{n.carbs}}</mdt-cell>
      <mdt-cell>{{n.protein}}</mdt-cell>
      <mdt-cell>{{n.sodium}}</mdt-cell>
      <mdt-cell>{{n.calcium}}</mdt-cell>
      <mdt-cell>{{n.iron}}</mdt-cell>
    </mdt-row>

and instead use

<mdt-table mdt-row="{
                      'data': filteredItems,
                      'table-row-id-key': 'id',
                      'column-keys': ['name', 'calories', 'fat', 'carbs', 'protein', 'sodium', 'calcium', 'iron']
                      }">

mdt-row is deprecated codepen demo

singhay avatar Jul 25 '17 21:07 singhay

So. I will use column-keys but how I can use ng-click on each row? I don't like the "Selectable Rows".

enkrateia avatar Jul 29 '17 14:07 enkrateia