V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tikazyq
V2EX  ›  程序员

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

  •  
  •   tikazyq ·
    tikazyq · Nov 16, 2015 · 3300 views
    This topic created in 3824 days ago, the information mentioned may be changed or developed.

    大家好,我正在开发一个数据后台,利用 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 的功能。请问这是为什么呢?

    谢谢啦

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3349 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 11:24 · PVG 19:24 · LAX 04:24 · JFK 07:24
    ♥ Do have faith in what you're doing.