Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DownloadCsvService

Index

Constructors

Properties

encoding_: string
extension_: string
includeHeader_: boolean
quote_: string
separator_: string
subscriptions: Subscription[] = []

Methods

  • generateCsv(data: {}[], columnDefs: GridColumnDef[]): string
  • Generate a CSV.

    Parameters

    • data: {}[]

      Entries/objects to include in the CSV.

    • columnDefs: GridColumnDef[]

      Column definitions.

    Returns string

    The CSV file as string.

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

    Parameters

    • data: {}[]

      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