在 angularjs 中将 ng-grid 数据导出为 CSV 和 PDF 格式 [英] Exporting ng-grid data to CSV and PDF format in angularjs

查看:40
本文介绍了在 angularjs 中将 ng-grid 数据导出为 CSV 和 PDF 格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮帮我....有什么插件吗..?

Please Help me....any plugin is there..?

我在 angularjs 中搜索了 exporing excel 和 PDF.使用 ng-grid.

I have searched for exporing excel and PDF in angularjs. using ng-grid.

在 angularjs 中将 ng-grid 数据导出为 CSV 和 PDF 格式

Exporting ng-grid data to CSV and PDF format in angularjs

推荐答案

对于 csv 导出,您可以找到 ngGridCsvExportPlugin,您可以找到 这里
只需引用脚本并将 ngGridCsvExportPlugin 添加到 gridOptions
(并通过将 showFooter : true 添加到 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,
      };

可以在此处

这篇关于在 angularjs 中将 ng-grid 数据导出为 CSV 和 PDF 格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆