supported
Supported public entry point. Import this entry point as @sheetwrite/core/adapter.
Source entry: packages/core/src/adapter.ts
Exported symbols
Functions 6
applyChangedLiveGridOptionsApplies live-updatable adapter option changes to an existing Grid.
createGridControllerCreate a grid and wire its lifecycle once, so the React/Vue/Svelte adapters (and any plain host) share a single, drift-free implementation instead of each re-deriving the same create → subscribe → teardown behavior.
createSimpleGridInputConverts simple columns and row objects into canonical workbook and columnar input.
extractGridOptionsExtracts advanced GridOptions from framework adapter props.
getGridResetReasonReturns the first reset-sensitive adapter input that changed, if any.
gridSizeStyleConverts adapter size props into a host element style object.
Interfaces 9
GridAdapterEventHandlersFramework-neutral readiness, change, and error callbacks shared by adapters.
GridControllerThe lifecycle handle returned by createGridController: the live grid, a theme passthrough, and a single teardown that detaches every subscription and destroys the grid.
GridControllerHandlersEvent callbacks a host (a framework adapter, or any plain app) hangs off a grid's lifecycle.
GridReadyEventGrid handle, generation, and reason published after adapter initialization.
OptionalGridSizePropsOptional width and height accepted by advanced framework adapters.
SheetwriteInitializationPropsOptional explicit WASM source and initialization error callback for adapters.
SimpleColumnColumn definition accepted by the adapters’ simple row-object API.
SimpleGridInputNormalized workbook and columnar data produced from simple adapter props.
SimpleSheetwriteOptionsFramework-neutral simple columns, rows, sizing, and grid options.
Types 3
GridReadyReasonReason an adapter published a ready Grid generation.
GridResetReasonReset-sensitive input change that requires an adapter to replace its Grid.
GridSizePropsExplicit width and height accepted by framework adapters.