The Base Workbook implementation

Implements

Constructors

Accessors

Methods

  • Adds a sheet at the given index with the given name. This will throw an exception if the sheetName is invalid or already used.

    Parameters

    • sheetName: string = null
    • index: number = null

    Returns ISheetModel

    ISheetModel the newly added/created ISheetModel.

  • Close the workbook and release any resources. No further operations are allowed after a close

    Returns void

  • Given the name return a valid name that closely matches.

    Parameters

    • str: string

    Returns string

  • Ordered list of sheetNames. This will only return SheetVisibility.Visible

    Returns string[]

  • Get all of the Sheet handles within the workbook for a given SheetVisibility. By default this will only return the visible sheets

    Parameters

    Returns SheetRef[]

  • Indicates if the model has been closed

    Returns boolean

  • Returns void

  • Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Begins a transaction but puts it onto a global stack. This will batch all 'transactional' changes until they have all be committed or rolled back.

    Parameters

    • Optional description: string

    Returns ITransaction

    Remarks

    Any changes that are made to this object will be reflected in the local sheet but not committed to the transactional store until the batch is popped.

  • Determine if dates should be 1904 instead of 1900 based

    Parameters

    • is1904Date: boolean

    Returns void

    Default Value

    false
    
  • Views have their own lifecycle because in a collaborative environment each user can have their own view.

    Parameters

    Returns void