tochoromero / aurelia-table

Simple functional data table for Aurelia
https://tochoromero.github.com/aurelia-table
MIT License
67 stars 25 forks source link

Access row counts after filtering is applied #55

Closed MECLab-Michelle closed 6 years ago

MECLab-Michelle commented 6 years ago

Hi,

I'm working with aurelia-table filtering. I'd like to be able to have row counts in a panel header update as the filters are applied. I can't seem to see how to access the size of the data that is currently displayed. Can I access $displayQueueData to do this or is there some other way?

Cheers,

csharpengineer commented 6 years ago

In my table, I added a footer.

<tfoot>
   <tr>
      <th colspan="4">Displaying ${$displayData.length} of ${totalItems} ${totalItems == 1 ? 'item' : 'items'}</th>
   </tr>
</tfoot>
tochoromero commented 6 years ago

As @csharpengineer mentioned $displayData is the currently displayed data