An internal util that is used in ember-fw-table for the export functionality, both in the FwTableSortable and FwPaginationWrapper.

Show:
createCSV
(
  • data
  • name=null
)

Creates a CSV file from a data array and a title

Parameters:

  • data Array

    Array of table cells

  • [name=null] Title optional

    Name to export

exportTable
(
  • table
  • title='Export'
)

Exports an Ember Light Table to CSV

Parameters:

  • table Table

    Table class, just needs to include rows and columns

  • [title='Export'] String optional

    Title to use for exporting