@mkthripathi/export-to-csv
v0.0.6
Published
# How to use code > npm install @mkthripathi/export-to-csv
Downloads
4
Readme
Author Manish Tiwari
How to use code
npm install @mkthripathi/export-to-csv
<mk-exportToCSV [lable]="'Export To CSV'" [fileName]="'demo'" [types]="bot" [tablereference]="mytable">
[tablereference] is accept the <table #mytable style="width:100%" border="1">
[types] return export functionality in UI as botton format or three dot if types is dot, It return three dot on UI if types is not dot, It return buttom on UI
[fileName] no need extension only need file name
Advantage
It expect both table like normal table like
It accept input type field and dropdown field table
ExportToCSV
This library was generated with Angular CLI version 8.2.0.
Code scaffolding
Run ng generate component component-name --project exportToCSV
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project exportToCSV
.
Note: Don't forget to add
--project exportToCSV
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build exportToCSV
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build exportToCSV
, go to the dist folder cd dist/export-to-csv
and run npm publish
.
Running unit tests
Run ng test exportToCSV
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.