在导出纳克angularjs电网数据CSV和PDF两种格式 [英] Exporting ng-grid data to CSV and PDF format in angularjs
问题描述
请帮我....任何插件是有..?
Please Help me....any plugin is there..?
我已经寻找在angularjs exporing Excel和PDF。采用NG-电网。
I have searched for exporing excel and PDF in angularjs. using ng-grid.
导出NG-网格数据到CSV和angularjs PDF格式的
Exporting ng-grid data to CSV and PDF format in angularjs
推荐答案
有关CSV导出还有就是 ngGridCsvExportPlugin ,你可以找到的此处结果
就在到脚本的引用,并添加ngGridCsvExportPlugin到gridOptions结果(通过添加激活页脚过的 showFooter:真正应用于gridOption)
For csv export there is the ngGridCsvExportPlugin that you can find here
Just at a reference to the script and add the ngGridCsvExportPlugin to the gridOptions
(and activate the footer too by adding showFooter : true to the gridOption)
$scope.gridOptions = {
data: 'myData',
plugins: [new ngGridCsvExportPlugin()],
showFooter: true,
};
一个基本plunker在这里你可以看到工作可以发现这里结果
A basic plunker where you can see it at work can be found here
这篇关于在导出纳克angularjs电网数据CSV和PDF两种格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!