TX Sheet Control

JavaScript Browser Editor API

Topic

The JavaScript API of the browser editor is what the npm package @txtextcontrol/tx-sheet-control exports: the Spreadsheet editor, the workbook object model it owns and the functions, constants and enumerations that go with them. The tables below list every export by kind.

The entries describe the public package surface. Workbook handles are obtained from their owner, such as the editor's workbook; the related object-model types are not an instruction to import extra packages.

Package: @txtextcontrol/tx-sheet-control.

Classes

ClassDescription
CellA worksheet-bound scalar cell handle. Literal text, entered input and calculated values remain distinct. Cell features are returned as detached snapshots; mutations remain undoable.
CellCommentsEditable cell conversation; current user identity belongs to the owning workbook runtime.
CellTypeRegistryPer-document extensible renderer/editor registry. Saved cells retain only a renderer name and portable options.
ChartCollectionPublic class for ChartCollection.
ChartHandleA worksheet-bound chart handle. Data references are resolved by the workbook calculation engine.
DashboardA stable dashboard handle. All snapshots are detached; handles expire after document replacement or deletion.
DashboardAnalyticsWorkbook-wide analytics; caches are private, column-oriented and invalidated by affected cells and formula changes.
DashboardCollectionWorkbook dashboard views; collection edits share the workbook history and .txwb persistence.
DataConnectionsOptional connection manager. Private state is inaccessible at runtime; no global namespace is installed. One provider per logical connection, multiple bindings per query. Re-registering cancels obsolete refreshes. Loading cancels requests and clears bindings; register bindings again for the new document. Dispose on host teardown.
DimensionPublic class for Dimension.
DimensionCollectionPublic class for DimensionCollection.
DrawingCollectionPublic class for DrawingCollection.
DrawingGroupA group handle that transforms its members together in unscaled worksheet coordinates.
DrawingHandleA drawing handle whose lifetime follows its worksheet and object token, rather than its display name.
FontManagerLoads document fonts and exposes font choices, layout metrics and deterministic document rendering assets.
FontRegistryResolves document font faces and shapes glyph runs identically in browser and server rendering.
LicenseErrorPublic class for LicenseError.
MailMergeTemplateCaptures template state and produces isolated merged workbooks without browser UI.
NamedRangeCollectionCase-insensitive names scoped to a workbook or one worksheet. Sheets take precedence over workbook names.
OperationCanceledErrorRaised when a host cancels a mutation; the shared transaction rolls it back atomically.
RangeA worksheet-bound rectangular range for atomic bulk reads, writes, formatting and copy operations. Range operations retain protection, validation and shared transaction semantics.
SheetCollectionStable sheet lookup and creation without changing the selected worksheet.
SheetControlCoordinates the editor lifecycle and delegates document and interaction behavior to focused operations.
SheetPrintWorksheet print settings with explicit units and validated page geometry.
SheetProtectionWorksheet-bound editing protection, using the same locked-cell styles as Excel import/export.
SheetValidationSheet-bound validation rules and inspection. Existing values remain unchanged when a rule is installed.
SheetViewWorksheet view settings never alter the underlying row heights, column widths or print area.
SpreadsheetCoordinates the editor lifecycle and delegates document and interaction behavior to focused operations.
TableA stable operational table handle. Mutations are worksheet-bound and undoable.
TableCollectionNamed table lookup and creation. Table names are unique across the whole workbook.
WorkbookLicensed workbook model. Active-sheet methods use the selected worksheet; retained handles bind explicit sheets.
WorkbookCalculationPer-document function registration, asynchronous settling, external documents and formula auditing.
WorkbookEventsPer-document typed subscriptions. Callbacks are excluded from saved state and undo history.
WorkbookSearchSparse cross-sheet search and atomic replacement, independent of the selected worksheet and browser DOM.
WorksheetA stable sheet identity. Access never activates a worksheet. Feature collections share the existing worksheet identity and lifecycle validation.

Enumerations

EnumerationDescription
StreamTypePublic enumeration for StreamType.

Functions

FunctionDescription
columnNamePublic function for columnName.
createDocumentLayoutPublic function for createDocumentLayout.
createHttpDataProviderPublic function for createHttpDataProvider.
createPrintLayoutPublic function for createPrintLayout.
getControlPublic function for getControl.
getLanguageResourcesPublic function for getLanguageResources.
getRegisteredLanguagesPublic function for getRegisteredLanguages.
loadFontCatalogPublic function for loadFontCatalog.
paintScenePublic function for paintScene.
parseAddressPublic function for parseAddress.
registerLanguagePublic function for registerLanguage.
shapeGeometryPublic function for shapeGeometry.

Constants

ConstantDescription
CHART_STYLESPublic constant for CHART_STYLES.
CHART_TYPESPublic constant for CHART_TYPES.
defaultFontCatalogURLPublic constant for defaultFontCatalogURL.
DEFAULT_STYLEPublic constant for DEFAULT_STYLE.
englishResourcesPublic constant for englishResources.
FORMULA_FUNCTIONSPublic constant for FORMULA_FUNCTIONS.
germanResourcesPublic constant for germanResources.
SHAPE_TYPESPublic constant for SHAPE_TYPES.
versionPublic constant for version.
  • PivotTable — An operational PivotTable. Handles are invalid after removal or document replacement; snapshots are detached.

  • PivotTableCollection — Workbook-wide or worksheet-scoped pivot collection. All indices are zero-based and returned settings are detached.

  • encodeBarcode — Encodes a standalone payload into detached module rows. It does not resolve workbook source references.

  • renderBarcodeSVG — Returns native SVG with a quiet zone. Default dimensions are 300×120 CSS pixels; each must be positive, finite and no greater than 12000.

  • renderBarcodePNG — Returns a data:image/png;base64 URL, including the quiet zone and optional linear caption.

  • barcodeCheckDigit — Returns the GS1 modulo-10 check digit for a nonempty numeric body. Invalid bodies reject with an error.