Skip to content
Sheetwrite

Sheetwrite / Documentation

SpreadsheetShell@sheetwrite/core/shell

Disposable controller for the framework-neutral spreadsheet shell.

Disposable controller for the framework-neutral spreadsheet shell.

Members 7

grid The single grid the shell owns; use it for data, search, and actions.
readonly grid: Grid;
element The shell's root element (already appended to the mount host).
readonly element: HTMLElement;
setTheme
setTheme(theme: Partial<Theme>): void;
setReadOnly
setReadOnly(readOnly: boolean): void;
setGridConfig Reconfigure the grid; the shell keeps its own toolbar/tabs suppressed.
setGridConfig(config: GridConfig | undefined): void;
setActiveSheet
setActiveSheet(id: SheetId): void;
destroy
destroy(): void;

Declaration

View full TypeScript declaration
export interface SpreadsheetShell {
readonly grid: Grid;
readonly element: HTMLElement;
setTheme(theme: Partial<Theme>): void;
setReadOnly(readOnly: boolean): void;
setGridConfig(config: GridConfig | undefined): void;
setActiveSheet(id: SheetId): void;
destroy(): void;
}