TX Sheet Control

SheetControl Class

Class

Coordinates the editor lifecycle and delegates document and interaction behavior to focused operations.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

ES module import: import { SheetControl } from '@txtextcontrol/tx-sheet-control';.

Constructor

new SheetControl(host, options)
ParameterTypeOptionalDescription
hostHTMLElementNoValue matching host's declared type and the owning object's validation rules.
optionsSpreadsheetOptions | undefinedYesSupported settings for this operation; omitted settings retain documented defaults.

Returns: SpreadsheetInstance.

Members

Properties

PropertyDescription
hostThe host value of SheetControl.
licenseInfoImmutable signed customer entitlement and current trial validity.
readyResolves after discovery, font-picker initialization and initial document fonts; rejects on failure.
uiThe ui value of SheetControl.
userNameCurrent comment author, shared with this control's workbook runtime.
workbookThe workbook value of SheetControl.

Methods

MethodDescription
destroyThe destroy operation of SheetControl.
loadLoads XLSX/TXWB bytes or CSV/XML/JSON text/UTF-8 bytes atomically. Tabular formats replace the workbook with one worksheet.
saveSaves a snapshot with reusable format-specific options; PDF is save-only.
saveTextSaves CSV, XML or JSON text with flat settings. Omits a generated CSV BOM; UTF-8 byte limits/events still include it. Does not change the workbook or options.

Examples

Pass the SheetControl value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

function inspectSheetControlUserName(sheetControl) {
    const value = sheetControl['userName'];
    console.log('SheetControl.userName', value);
}

See Also