I am trying to do export pdf displayed by ngxdatable in Angular 2. How to do it?
Export PDF from ngx datatable using angular 2
6.2k views Asked by Goutam Singha At
1
I am trying to do export pdf displayed by ngxdatable in Angular 2. How to do it?
There is a way actually...
I've been using an external library to be able to export documents from my Angular4 app : https://github.com/eligrey/FileSaver.js/
Here is the sample code I used to extract my data. I binded this method to a button to trigger the event :
TypeScript component :
Template side :