Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebContainer

Build wrapper to create valid browser script. This will inject toExcel to the window object to be available globally within the web page

Hierarchy

Index

Constructors

constructor

Methods

Static exportXLS

  • exportXLS(columns: IHeader[], data: any[], options?: string | IOptions): string
  • Generates compatible Excel xls file (xml in fact) and returns content and downloads (if set)

    Parameters

    • columns: IHeader[]

      This object defines column labels and maps worksheet data.

    • data: any[]

      Sets the data of the worksheet.

    • Optional options: string | IOptions

      Options to define behaviour

    Returns string

    content of file

Static setReplace

  • setReplace(value?: any, replacementValue?: any): void
  • Replaces value

    Parameters

    • Optional value: any

      value

    • Optional replacementValue: any

      replacementValue

    Returns void

    void

Generated using TypeDoc