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

Data from tmpl does not render in export or print

Open allenfuller opened this issue 9 years ago • 2 comments

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?

allenfuller avatar Jan 31 '16 05:01 allenfuller

I am having the exact same problem using the Buttons extension. +1 for a solution to this.

serkyen avatar Feb 04 '16 03:02 serkyen

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.

serkyen avatar Feb 23 '16 05:02 serkyen