EditorUi Interface
Editor-only state and commands. These settings do not belong in server-side workbook data.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
Type-only declaration; it is not a JavaScript runtime constructor.
Members
Properties
| Property | Description |
|---|---|
| areas | Visible editor chrome; complete snapshots are returned and partial patches are accepted. |
| comments | Screen-only comments controls; the sidebar and popup never enter printed workbook data. |
| language | Interface language, independent of value/number formatting locale. |
| printContext | Header/footer field context; reads return a detached copy and assignments validate the complete context. |
| resolvedTheme | Effective light/dark theme after resolving the automatic system preference. |
| ribbon | Ribbon presentation, visibility and policies for built-in commands. |
| selection | The selection value of EditorUi. |
| theme | The theme value of EditorUi. |
| viewMode | The viewMode value of EditorUi. |
| zoom | Gets or sets worksheet zoom, rounded and clamped to 25–400 percent. |
| highlightDependents | Enable brief feedback on dependent formula cells. |
Methods
| Method | Description |
|---|---|
| autoFitColumns | The autoFitColumns operation of EditorUi. |
| autoFitRows | Auto-fits inclusive zero-based indices (or the current selection), waiting for deployed fonts. |
| clearArrows | The clearArrows operation of EditorUi. |
| commitEdit | Commits a pending cell edit; false means validation keeps the editor open. |
| loadMergeData | Loads the application's mail-merge data source without putting transient data in workbook JSON. |
| selectChart | The selectChart operation of EditorUi. |
| selectDrawing | Selects a drawing/chart owned by this editor, switching to its sheet. Foreign/stale handles throw. |
| selectRange | The selectRange operation of EditorUi. |
| selectSheet | The selectSheet operation of EditorUi. |
| setResources | Applies application localization overrides to the current interface language. |
| setTheme | The setTheme operation of EditorUi. |
| setViewMode | The setViewMode operation of EditorUi. |
| setZoom | Sets worksheet zoom, rounded and clamped to 25–400 percent, and returns the applied value. |
| traceDependents | The traceDependents operation of EditorUi. |
| tracePrecedents | Draws screen-only formula traces for the active cell; returns cross-sheet references. |
Examples
Pass the EditorUi value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
import type { EditorUi } from '@txtextcontrol/tx-sheet-control';
function inspectEditorUiResolvedTheme(editorUi: EditorUi) {
const value = editorUi['resolvedTheme'];
console.log('EditorUi.resolvedTheme', value);
}
See Also
pivotTables — Configure and refresh worksheet pivot tables.