SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface Event

    interface Event {
        isDataChange?: boolean;
        isUndo?: boolean;
        timeStamp: number;
        trigger: string;
        trigger2?: "address" | "data" | "restore";
        getFrom(): ICellRanges;
        getSource<T = ICellRanges | ICellRange>(): T;
        getTo?(): ICellRange;
        getTransactionId(): string | null;
        toString(): string;
    }
    Index
    isDataChange?: boolean

    Indicates if the event is being fired due to a cell value change.

    isUndo?: boolean

    Indicates if the event is being fired from an undo event.

    timeStamp: number

    The timestamp of the event.

    trigger: string
    trigger2?: "address" | "data" | "restore"

    Indicates the type of change that triggered the event.

    • 'data': Data within the range has changed. The range's address and dimensions remain the same.
    • 'address': The range's address or dimensions have changed. This occurs due to row/column insertions, deletions, or move operations — and, for a sheet-qualified range (one from IWorkbook.getRange, or a sheet's range naming another sheet), when the sheet it names is renamed. A bare range on its own sheet has no qualifier, so a rename is not a change to it.
    • 'restore': The range has been restored to a different revision (undo/redo). The 'restore' trigger is not available for transactional listeners.
    • This is the range of data that has been changed.

      Returns ICellRanges

      This is different than the source range as that is the entire range area that was listened to.

    • The source of the event. This will be a readonly range.

      Type Parameters

      Returns T

      This may change shape due to insert/delete/move of cells or sheets.

    • Used for moves. Represents the new location of the data that has changed.

      Returns ICellRange

    • Returns the transaction Id if the event is occurring in a transaction otherwise null.

      Returns string | null

      ListenerOptions.getTransactionId

    • To string the event.

      Returns string