Retrieve the studio's formula bar element, if a formula bar is shown.
The studio's live workbook — carrying its origin and display name — or null while loading /
on error / before a workbook is set. The same instance pushed via
StudioProps.onWorkbookChange, but readable on demand.
Retrieve the chrome-free workbook grid element contained by this studio.
The authoritative unsaved-changes state of the live workbook.
A synchronous, on-demand read (unlike StudioProps.onDirtyChange) — e.g. for a host (a VS Code extension) to re-check dirty immediately after an async save, where a concurrent edit may have re-dirtied the workbook between encode and write.
For runtime type checking.
Move focus into the studio.
Optionaloptions: FocusOptionsA generic focus affordance that delegates to the contained
IWorkbookElement's focus() (which focuses the active sheet). Declared here (rather than
relying on the inherited HTMLDivElement.focus) so the delegating behavior is part of the
studio contract.
Signature mirrors HTMLElement.focus so IStudioElement can extend both.
A synchronous read of the current workbook-resolution WorkbookLoadState.
Re-attempt resolving the current StudioProps.document.
Saves the workbook exactly as the studio's own Save does — back to its origin, or asking where when it has none — including the studio's dialog when the write would lose something.
Optionaloptions: StudioSaveOptionsThe origin written, or null when the save was cancelled (a dismissed picker, a
declined lossy write).
The "load promise": resolves with the IWorkbook once it has loaded, rejects if the load fails.
Lets a host await the outcome of the StudioProps.workbook resolution (a promise / read options) without wiring StudioProps.onWorkbookChange + StudioProps.onDocumentError. Re-armed on each new load (and on IStudioAttributes.retry); after a load has settled it returns the settled promise. Resolves on workbook load — not the grid's first paint (StudioProps.onWorkbookLoad).
The shared cell editor, or
nullif none. The same instance the grid and formula bar drive. Delegates to the workbook element'sgetEditable().