SheetXL - v0.3.20
    Preparing search index...

    Interface Events

    Events for ISheet.

    interface Events {
        onBeforeDelete(source: ISheet): void;
        onBeforeLoad(source: ISheet, json: ISheet.JSON): void;
        onBeforeSave(source: ISheet): void | Promise<void>;
        onClose(source: ISheet): void;
        onDelete(source: ISheet): void;
        onFreezeSplitChange(source: ISheet): void;
        onInvalidated(source: ISheet): void;
        onLayoutChange(source: ISheet): void;
        onLoad(source: ISheet): void;
        onMergesChange(source: ISheet): void;
        onMovablesChange(source: ISheet): void;
        onMovableSelectionChange(source: ISheet): void;
        onNameChange(source: ISheet): void;
        onProtectionChange(source: ISheet): void;
        onRequestFocus(source: ISheet): Promise<boolean>;
        onRequestScrollIntoView(
            source: ISheet,
            options: ScrollToOptions,
        ): Promise<boolean>;
        onSave(source: ISheet, json: ISheet.JSON): void;
        onSelectionChange(source: ISheet): void;
        onSpillsChange(source: ISheet): void;
        onStyleChange(source: ISheet): void;
        onTabColorChange(source: ISheet): void;
        onTablesChange(source: ISheet): void;
        onTopLeftChange(source: ISheet): void;
        onUsedRangeChange(source: ISheet): void;
        onViewChange(source: ISheet): void;
        onViewChange(source: ISheet): void;
        onVisibilityChange(source: ISheet): void;
    }
    Index

    Methods

    • Called before delete. If any exception is thrown the exception will be returned to the client and delete will be aborted.

      Parameters

      Returns void

    • Called before load. If any exception is thrown this exception will be returned to the client and delete will fail.

      Parameters

      Returns void

    • Called before load. If any exception is thrown this exception will be returned to the client and delete will be aborted.

      Parameters

      Returns void | Promise<void>

    • Called when the sheet is closed.

      Parameters

      Returns void

    • Called when the sheet is deleted.

      Parameters

      Returns void

    • Called when freeze or split settings have changed.

      Parameters

      Returns void

      This is a delegated event from the ISheetView.

    • Called when the state has been updated due to a undo/redo and a rerender is required.

      Parameters

      Returns void

    • Called when the sizes of the cells change.

      Parameters

      Returns void

      • This can be be due to row/column sizes changes or changing the max rows columns.
      • Zoom and viewport do not change the underlying layout.
    • Called after load.

      Parameters

      Returns void

    • Called when any merges are added or removed.

      Parameters

      Returns void

    • Called when any movables are added or removed.

      Parameters

      Returns void

    • Called when the movable selection changes.

      Parameters

      Returns void

      This is a delegated event from the ISheetView.

    • Called when the name changes.

      Parameters

      Returns void

    • Called on any protection changes.

      Parameters

      Returns void

    • Request that the sheet become focused.

      Parameters

      Returns Promise<boolean>

      A promise indicating if the focus was honored.

      This should only be handled by one consumer.

    • Request that the sheet become focused.

      Parameters

      Returns Promise<boolean>

      A promise indicating if the focus was honored.

      This should only be handled by one consumer.

    • Called when the selection changes.

      Parameters

      Returns void

      This is a delegated event from the ISheetView.

    • Called if any spills occur.

      Parameters

      Returns void

    • Convenience method that listens to all changes on the style.

      Parameters

      Returns void

    • Called when the sheet tab color changes.

      Parameters

      Returns void

    • Called when any table are added or removed.

      Parameters

      Returns void

    • Called when the topLeft changes.

      Parameters

      Returns void

      This is a delegated event from the ISheetView.

    • Called when the UsedRange bounds changes.

      Parameters

      Returns void

      Useful when interested in knowing when the bounds of the area that is being used within the sheet changes; for example this is used by the scrollbars to adjust the size.

    • Called when the ISheetView changes.

      This is not called when individual properties on the view change.

      Parameters

      Returns void

    • Called when the view changes.

      Parameters

      Returns void

    • Called when the visibility changes..

      Parameters

      Returns void