OptionalcalcWhat loading is allowed to calculate.
'auto' — the engine starts, cached values are trusted, and the load pass runs: a formula
cell with no cached value is evaluated (a repair) and volatiles refresh. Everything is
recalculated only when the file asks (json.calc.fullCalcOnLoad, workbooks only).'full' — as 'auto', then everything is recalculated.'none' — the engine is not started. Nothing is compiled or calculated; values stand as
loaded and formulas pass through to a save exactly as read. The first mutation, or an
explicit ICalculation.calculate / IWorkbook.whenCalculationReady, starts
the engine and applies what was deferred. Until then a formula READ answers null.Ignored when calculation is provided — a borrowed engine is started by its owner.
OptionalcalculationOption to provide a custom calculation.
Supplying one hands the container an engine it does not own. functions, formulaTransform and calcOnLoad describe how to build the engine the container owns, so they are ignored when this is provided.
OptionalcreateHook to allow for custom sheet creation.
OptionalcreateReturns a human readable sheet name given a 0-based index.
OptionaldisableIf true then the initial autoFit will not be called.
OptionalexternalOpens the source of an external book on IExternalBook.refresh — see IExternalBook.IResolver for what it answers and the trust boundary it sits behind.
Fixed for the workbook's life, as the engine it feeds is: a resolver is part of how a host
sets a workbook up, not a setting a document carries. Without one every refresh answers
'unavailable' and the caches stand. Ignored when calculation is provided.
OptionalfunctionsAdditional custom formula function providers, bound after the built-ins (so they override
built-ins on name collision). Each provider is the initialize binder produced by the
FormulaCompiler (@sheetxl/scripting) for a folder of formula sources.
Ignored when calculation is provided.
OptionaljsonLoad from JSON.
OptionalnamesOption to provide shared names.
OptionalopenerOpens an external hyperlink (e.g. an http(s)/mailto cell link).
OptionaloriginThe IWorkbookIO.Origin the workbook maps to — threaded through by the IO layer at read time. Omit for an in-memory workbook (an unbound origin is minted). A string is shorthand for an unbound origin with that display name.
The initial origin; a save that resolves a new destination replaces it (see IWorkbook.getOrigin).
A host with its own save flow can pass an IWorkbookIO.OriginProvider instead and move it itself; the IO layer then leaves the workbook's origin to that host.
OptionalreadonlyIf true then the model is readonly and cannot be save.
OptionalresolveAllows for address to be resolved in custom ways.
OptionalresourcesOption to provide shared resources.
OptionalruntimeInitialize a cell container with a pre-defined runtime.
OptionalstringsOption to provide shared strings.
OptionalstylesOption to provide a shared StyleCollection. If not provided then a new StyleCollection with default theming will be used.
OptionalthemeA theme for the workbook.
OptionaltransactionsThe store for all state changes. This is provided to enable versioning, undo/redo, distributed editing, etc.
If not specified then an internal ITransaction.IStore will be created.
OptionalworkbookIf the parent has a workbook
Options available when creating an IWorkbook.