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.
OptionalcontainerWhen adding to another container.
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.
OptionaljsonInitial JSON.
OptionalnamesOption to provide shared names.
OptionalopenerOpens an external hyperlink (e.g. an http(s)/mailto cell link).
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.
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.
OptionaluidThe sheet's id (ISheet.getId): what formulas and operations (copy/paste) identify it by. Must be unique among all in-memory sheets.
The id. If not provided a new one is made.
Not saved as part of the ISheet.JSON persisted model. A container that names its sheets before it builds them (a workbook loading its sheets) supplies it.
OptionalworkbookIf the parent has a workbook
Optional values used in the construction of am ISheet.
Remarks
Changes to these options will be ignored after construction.