meteor-tabular
meteor-tabular copied to clipboard
Data from tmpl does not render in export or print
When I use a Blaze template in a column, even if that data renders correctly in the table on the screen, it does not transfer to exports or print views.
Any suggestions?
I am having the exact same problem using the Buttons extension. +1 for a solution to this.
I found a way around this problem.
As stated in the meteor-tabular docs...
This is not part of the DataTables API. It's a special feature of this package.
This is probably why it isn't exporting correctly.
So instead of using the tmpl property of the tabular package...
tmpl: Meteor.isClient && Template.templateName
I used collection helpers.
Then exporting with the Buttons extension, everything works.