Class Workbook<T>

The Workbook() class create a workbook instance, which contains multiple worksheets.

Type Parameters

Hierarchy

  • Workbook

Constructors

Properties

book: Worksheet<T>[]
cellStyle: CellStyle = ...
generateSheet: GenerationPattern = ...
workbook: Workbook = ...

Methods

  • The applyStyle() method applies cell style to the book.

    Parameters

    • s: Worksheet<T>
    • sheet: Worksheet
    • keys: boolean

    Returns void

  • The save() method saves the current book as an XLSX file.

    Parameters

    • path: string

    Returns Promise<void>

  • The saveAsCSV() method saves the current book as a CSV file.

    Parameters

    • path: string

    Returns Promise<void>

  • The setGenerationPattern() method sets the generation pattern of the book.

    Parameters

    • pattern: GenerationPattern

    Returns void

  • The setStyle() method sets the style registry for the worksheet.

    Parameters

    • ce: CellStyle

      Cell's style registry.

    Returns void

Generated using TypeDoc