TX Sheet Control

TypeScript Angular API

Topic

The Angular integration is part of the editor package and is imported from @txtextcontrol/tx-sheet-control/angular. Its declarations list the TXSheetControlComponent with the classes, interfaces, type aliases, functions, constants and enumeration an Angular application uses with it.

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

Package: @txtextcontrol/tx-sheet-control/angular.

Classes

ClassDescription
SpreadsheetCoordinates the editor lifecycle and delegates document and interaction behavior to focused operations.
TXSheetControlComponentAngular lifecycle adapter that mounts the editor outside the Angular change-detection zone.
WorkbookLicensed workbook model. Active-sheet methods use the selected worksheet; retained handles bind explicit sheets.

Interfaces

InterfaceDescription
ControlAreasPublic contracts; workbook JSON never contains DOM or downloaded font objects.
LoadOptionsReusable load settings. Input buffers are copied; cancellation/validation never partially replace a workbook.
LoadResultImport notices returned after an atomic document replacement.
SaveOptionsReusable save settings shared by every host. Metadata is export-only and overrides loaded document metadata.
SpreadsheetOptionsInitial document, control-area visibility, appearance and dimensions for a mounted editor.
WorkbookChangeNotification source for a completed document change; batched edits emit one notification.

Type Aliases

TypeDescription
LocalizationKeyPublic type for LocalizationKey.
LocalizationResourcesPublic type for LocalizationResources.
WorkbookDocumentPublic type for WorkbookDocument.

Enumerations

EnumerationDescription
StreamTypePublic enumeration for StreamType.

Functions

FunctionDescription
getLanguageResourcesPublic function for getLanguageResources.
getRegisteredLanguagesPublic function for getRegisteredLanguages.
registerLanguagePublic function for registerLanguage.

Constants

ConstantDescription
englishResourcesPublic constant for englishResources.
germanResourcesPublic constant for germanResources.

Pivot Tables

Use the ready editor instance to call editor.workbook.pivotTables and editor.ui.pivotTables. The browser Pivot Tables guide includes the shared field settings, contextual ribbon and task pane. Angular requires no separate pivot package.

OpenDocument Settings

The Angular package re-exports OpenDocumentSpreadsheetLoadOptions and OpenDocumentSpreadsheetSaveOptions. Use them with the component's shared load/save methods and StreamType.OpenDocumentSpreadsheet. See the load settings, save settings and ODS guide.

Document Font Types