SheetXL - v0.3.20
    Preparing search index...

    Base implementation of ISheet.

    Implements

    Index

    Constructors

    Accessors

    • get "[toStringTag]"(): string

      Returns string

    • get isISheet(): true

      For runtime type checking.

      Returns true

    Methods

    • Parameters

      • length: number = 10000000
      • doProfile: boolean = false

      Returns void

    • Batches all 'transactional' changes until they have all be committed or rolled back.

      Parameters

      • Optionaloptions: string | OperationOptions

        Description of the operation or additional options. Used for tracking undo/redo and history. Default Value User Operation.

      Returns ITransaction

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

      Useful for operations that are longer running but generally not recommended as it keeps a transaction open. doBatch is the preferred option.

    • Free all resources associated with the sheet.

      Returns void

      • Called by workbooks when the workbook is is closed.
      • This is different than delete which removes the sheet from the workbook.
    • Creates a cell that is not including at a coordinate but adopts all rendering.

      Useful for previewing values such as tooltip. If the coords are passed it will return a disconnect cell update for that value.

      Parameters

      Returns ICell

      A detached ICell

      Does not add to the sheet but provides a standalone ICell.

    • Removes from a container. This is usually the Workbook. If this is being used standalone this operation will throw an exception.

      Returns void

    • Provides a mechanism to perform a set of operations in a batch.

      Type Parameters

      • R

      Parameters

      • callback: (commit: ICommit) => R | Promise<R>

        A callback that performs multiple operations all within the same transaction.

      • Optionaloptions: string | OperationOptions

        Description of the operation or additional options. Used for tracking undo/redo and history. Default Value User Operation.

      Returns R | Promise<R>

    • Returns a promise that will resolve to a copy of the current sheet.

      Returns Promise<ISheet>

    • Returns an iterator of ICells that match the results.

      Parameters

      • text: string

        The text to search for.

      • Optionaloptions: FindOptions

      Returns Iterator<ICell>

      This is the equivalent of getEntireRange().find.

    • Returns the column width as a font unit.

      This is used as an informative tooltip.

      Parameters

      • pixelWidth: number

      Returns number

    • Returns the display name for the sheet.

      Returns string

    • Returns the current shared resources.

      Returns IStore

    • Returns the current view settings View settings determine how the sheet is displayed and interacted with (e.g., frozen panes, zoom level, selection) but do not affect the underlying data itself.

      Returns ISheetView

      The ISheetView object representing the current view settings.

    • Returns true if the sheet has been closed.

      Returns boolean

    • Indicates if the sheet is using 1904 dates.

      Returns boolean

      This can not be set on the ISheet. This is managed by the sheet's container.

    • Set the display name for the sheet.

      Parameters

      • name: string

      Returns ISheet

    • Reorders the ISheet with in the container. This is generally the tab order within an IWorkbook but may be the zIndex if the ISheets are movable. This only affects visual listings of the sheets (but selection doesn't change).

      Parameters

      • index: number

      Returns ISheet

      This is zero-based.

    • See the tab color for the sheet.

      Parameters

      • color: string | IColor

        The color

      Returns this

      • If set to null the color will revert to the default.
      • The tab color is not used by the sheet but rather by the workbook.
    • Returns a JSON representation of the sheet.

      Parameters

      • excludeData: boolean = false

        If true only meta data about the sheet will be saved.

      Returns Promise<ISheet.JSON>

    • Returns the address as a string.

      Returns string