Skip to content
Sheetwrite

@sheetwrite/core

SheetwriteAddoninterface

Report a problem

On this page

One optional Sheetwrite package. Each add-on package exports a factory named <name>Addon that returns this object; hosts pass it to initSheetwrite({ addons }).

setup runs once, in list order, after the engine loads. grid runs after each later createGrid call, in the same order, and the cleanup it returns runs when that grid is destroyed. Both hooks are synchronous and should stay small: an add-on loads its heavy code on first use.

Members

Properties

readonly name: string;

read-only

Unique add-on name; it is also the key of its per-grid settings.

Methods

Declaration

View full TypeScript declaration
export interface SheetwriteAddon<Settings = unknown> {
readonly name: string;
setup?(context: SheetwriteAddonContext): void;
grid?(context: SheetwriteAddonGridContext<Settings>): (() => void) | void;
}

Referenced by

Public exports naming SheetwriteAddon