API Docs for:
Show:

flexiciousNmsp.CsvExporter Class

Extends Exporter

Exports the grid in CSV format

Constructor

flexiciousNmsp.CsvExporter

()

Methods

buildHeader

(
  • grid
)
String

Parameters:

  • grid Object

Returns:

String:

escapeCsv

(
  • val
)
String | XML

Parameters:

  • val Object

Returns:

String | XML:

getContentType

() String

Returns the content type so MS Excel launches when the exporter is run.

Returns:

String:

getExtension

() String

Extension of the download file.

Returns:

String:

getName

() String

Name of the exporter

Returns:

String:

writeFooter

(
  • grid
)
String

Writes the footer in CSV format

Parameters:

  • grid Object

Returns:

String:

writeHeader

(
  • grid
)
String

Writes the header of the grid (columns) in csv format

Parameters:

  • grid Object

Returns:

String:

writeRecord

(
  • grid
  • record
)
String

Writes an individual record in csv format

Parameters:

  • grid Object
  • record Object

Returns:

String: