tochoromero / aurelia-table

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

Access to filtered array #77

Open rosshigh opened 3 years ago

rosshigh commented 3 years ago

Is there a way to access the full filtered data rather than the original data (data) or the data displayed in the table (display-data)?

Thank you, Ross

tochoromero commented 3 years ago

Hello ross. I'm currently working on the next version for Smart Table. I'm planning on allowing you to access the "display data", I don't know if that will be enough for you. The problem will be when you have pagination, because it will only return the rows from the current page.

rosshigh commented 3 years ago

That's the problem I'm having. I need to access the full array and not what is showing on the current page.

Thanks.

tochoromero commented 3 years ago

Would it work as a function you can call on VTable, something like: this.$refs.myTable.getData({ filtered: true, paginated: false, sorted: true })

I don't want to have to calculate this on every change since it is a bit of an edge case and it can be expensive if you have tons of rows and most of them are hidden behind pagination.

rosshigh commented 3 years ago

That would work.