meteor-tabular icon indicating copy to clipboard operation
meteor-tabular copied to clipboard

Support aggregation pseudo-collections

Open smas321 opened this issue 10 years ago • 3 comments

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

smas321 avatar Feb 27 '15 08:02 smas321

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.

aldeed avatar Feb 27 '15 20:02 aldeed

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.

smas321 avatar Mar 02 '15 04:03 smas321

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

aldeed avatar Mar 02 '15 16:03 aldeed