V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tikazyq
V2EX  ›  程序员

angularjs 的 ui.grid 无法加载 ui.grid.exporter 导出 CSV

  •  
  •   tikazyq ·
    tikazyq · 2015-11-16 12:09:28 +08:00 · 2942 次点击
    这是一个创建于 3084 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大家好,我正在开发一个数据后台,利用 AngularJS 的 ui.grid 生成了报表,但在尝试加载导出 CSV ,按照 http://ui-grid.info/docs/#/tutorial/206_exporting_data 作了配置,但是还是无法加载。

    HTML

    <div class="grid" ui-grid="{data: roiTableData, columnDefs: roiCols, enableGridMenu: true, exporterCsvFilename: 'myFile.csv', enableSelectAll: true, onRegisterApi: gridApiFunc}" ui-grid-exporter></div>
    

    JS

    var app = angular.module('mainApp', [
        'ngResource',
        'ui.grid',
        'ui.grid.exporter',
        'ui.grid.pinning',
        'ui.grid.resizeColumns'
    ]).constroller(...);
    

    但我刷新页面的时候还是没有 export csv 的功能。请问这是为什么呢?

    谢谢啦

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2483 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:28 · PVG 09:28 · LAX 18:28 · JFK 21:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.