Class DownloadCsvService

Hierarchy

  • DownloadCsvService

Constructors

Properties

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

Methods

  • Generate a CSV.

    Returns

    The CSV file as string.

    Parameters

    • data: {
          [x: string]: any;
      }[]

      Entries/objects to include in the CSV.

    • columnDefs: GridColumnDef[]

      Column definitions.

    Returns string

  • Returns

    CSV row.

    Parameters

    • values: any[]

      Values.

    Returns string

  • Generate a CSV and start a download with the generated file.

    Parameters

    • data: {
          [x: string]: any;
      }[]

      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