Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DownloadCsvService

Index

Properties

download_

download_: Download

Download service.

encoding_

encoding_: string

File encoding of the CSV file.

extension_

extension_: string

File extension of the CSV file.

gettextCatalog_

gettextCatalog_: gettextCatalog

includeHeader_

includeHeader_: boolean

Whether to include the header in the exported file or not.

quote_

quote_: string

Quote character.

separator_

separator_: string

Separator character.

Methods

generateCsv

  • Generate a CSV.

    Parameters

    • data: Object[]

      Entries/objects to include in the CSV.

    • columnDefs: GridColumnDef[]

      Column definitions.

    Returns string

    The CSV file as string.

getRow_

  • getRow_(values: any[]): string

startDownload

  • startDownload(data: Object[], columnDefs: GridColumnDef[], fileName: string): void
  • Generate a CSV and start a download with the generated file.

    Parameters

    • data: Object[]

      Entries/objects to include in the CSV.

    • columnDefs: GridColumnDef[]

      Column definitions.

    • fileName: string

      The CSV file name, without the extension.

    Returns void

Generated using TypeDoc