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

Creating data table without a collection

Open zachnar opened this issue 8 years ago • 1 comments

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!

zachnar avatar May 14 '17 17:05 zachnar

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.

luixal avatar Jun 01 '17 19:06 luixal