meteor-tabular
meteor-tabular copied to clipboard
Creating data table without a collection
Hi!
Quick question - I hope I didn't miss anything in the readme. Is there a way of creating a data table without linking the data tabel to a Collection. For example, I have a search field that will return results (json) from a different server - Is there a way of creating the data table with the response data?
Thanks!
You can create a local collection. If I remember rigth, somethinkg like:
myCollection = new Meteor.Collection(null)
and then put your data inside that collection. Not sure if it works, maybe local collections are only allowed on the client.
I guess other option is to directly use the ajax feature of DataTables, as you'll be fetching your data in a paginated way.