繁体   English   中英

如何使用 ngx-export-as 中的选项

[英]How to get use of the options in ngx-export-as

我是ZD18B8624A0F5F721DA7B82365FC562DDDZ的新手排序箭头和一些我在 pdf 中不需要的数据,我已经使用此链接https://www.npmjs.com/package/ngx-export-as查看了文档,但它没有说明选项。 如果您能告诉我如何隐藏排序箭头和任何其他元素,我将不胜感激

employees.component.html

<button (click)="ExportAsPDF()" class="dropdown-item">PDF</button>
<table id="myTable" datatable [dtOptions]="dtOptions" [dtTrigger]="dtTrigger"></table>

雇员.component.ts

exportAsConfigPdf: ExportAsConfig = {
    type: 'pdf',
    elementId: 'myTable',
    options: {
    }
}

ExportAsPDF(){
    this.exportAsService.save(this.exportAsConfigPdf, 'Employees Table').subscribe(() 
   => {});
  }

库选项应该在 config.options object https://github.com/wnabil/ngx-export-as#configuration

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM