Workbook, data, rendering, policy, and built-in UI options used to create a Grid.
Members 18
workbook Live workbook schema adopted by the store and updated by document operations.
data Eager column-major values loaded into workbook.activeSheet; use instead of datasource.
datasource Lazy row provider requested for visible windows; use instead of eager data.
datasourceStorage Allocation and cache policy for datasource-backed cell storage.
renderer Paint backend; defaults to main-thread canvas and falls back there if a worker fails.
renderer?: "canvas" | "worker";workerUrl URL of the worker renderer module (renderer: "worker"), as served to the BROWSER — the platform Worker constructor does not consult package exports, so a bare specifier like new URL("@sheetwrite/core/worker",…
workerUrl?: string | URL;URL of the worker renderer module (`renderer: "worker"`), as served to the BROWSER — the platform `Worker` constructor does not consult package exports, so a bare specifier like `new URL("@sheetwrite/core/worker", import.meta.url)` is NOT reliable. Either copy `@sheetwrite/core/dist/worker.js` to your public assets and pass its URL string (works everywhere), or use your bundler's dependency-worker import if it has one (see `/docs/guides/worker-rendering/`). If omitted or the worker can't be constructed, the grid falls back to the main-thread canvas renderer and emits `renderer-fallback` once.
presentation Header presentation. Spreadsheet mode (default) paints positional A/B/C labels; data-grid mode paints each column's semantic header.
Header presentation. Spreadsheet mode (default) paints positional A/B/C labels; data-grid mode paints each column's semantic `header`. Cell addressing, row indices, clipboard values, formulas, and exports are unchanged in both modes.
theme Overrides merged over the default theme and host CSS custom properties.
readOnly Disables mutating interactions while preserving navigation and selection.
readOnly?: boolean;hyperlinkActivation Hyperlink activation never opens a browser URL.
hyperlinkActivation?: "event-only" | "internal-navigation" | "disabled";Hyperlink activation never opens a browser URL. `event-only` (default) emits a safe resolved target; `internal-navigation` additionally moves to stable internal destinations; `disabled` rejects every activation request.
protectionResolver Host-owned client UX permission check.
Host-owned client UX permission check. Servers must independently authorize every submitted operation; this resolver is not an authentication boundary.
mutationPolicy Atomic rejects the transaction; partial skips denied operation objects.
transactionResourceLimits Overrides inclusive operation-count and encoded-byte ceilings for every atomic mutation.
renderers Custom cell renderers registered up front; also see Grid.defineCellRenderer.
editors Named custom editors resolved from each column's editor field.
overscan Extra row and visible-column positions painted on each viewport edge.
overscan?: number;Extra row and visible-column positions painted on each viewport edge. Defaults to 6; use 0 to disable the buffer.
minColumns Render at least this many columns (empty padding columns past the data, like a spreadsheet).
minColumns?: number;config Built-in UI controls; providing an object enables the toolbar unless toolbar is false.
Declaration
View full TypeScript declaration
export interface GridOptions { renderer?: "canvas" | "worker"; workerUrl?: string | URL; readOnly?: boolean; hyperlinkActivation?: "event-only" | "internal-navigation" | "disabled"; overscan?: number; minColumns?: number;}