Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DownloadCsvService

Index

Properties

download_: Download

Download service.

encoding_: string

File encoding of the CSV file.

extension_: string

File extension of the CSV file.

gettextCatalog_: gettextCatalog
includeHeader_: boolean

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

quote_: string

Quote character.

separator_: string

Separator character.

Methods

  • 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_(values: any[]): string
  • 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