Meteor-Community-Packages / meteor-tabular

Reactive datatables for large or small datasets
https://packosphere.com/aldeed/tabular
MIT License
363 stars 136 forks source link

Support aggregation pseudo-collections #84

Open smas321 opened 9 years ago

smas321 commented 9 years ago

Brilliant lib.

Does it or are there plans to support more complex queries of collections such as aggregations? Or is there a way to source the table data from a function rather than a collection (so I can do the more complex queries in the function?).. or some other way of achieving the same

aldeed commented 9 years ago

It's something that has crossed my mind, but this is currently coded pretty specifically toward single collections. You can pull in related data from other collections using collection helpers, but that's as complex as it gets right now. If there is a way to retain the current features and also support multiple collections and pseudo-collections, I'm certainly in favor of doing it someday.

smas321 commented 9 years ago

Thanks for that. What about adding further controls to limit what is shown in the table? such as a checkbox to exclude all records that meet a certain condition. For example if one of the columns is a date field, exclude all rows where the value of that date field is before today.

aldeed commented 9 years ago

You can add any UI elements you want and then use them to reactively update the selector attribute on the table.