Spreadsheet Interface
Coordinates the editor lifecycle and delegates document and interaction behavior to focused operations.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.
Members
Properties
| Property | Description |
|---|---|
| host | The host value of Spreadsheet. |
| licenseInfo | Immutable signed customer entitlement and current trial validity. |
| ready | Resolves after discovery, font-picker initialization and initial document fonts; rejects on failure. |
| ui | The ui value of Spreadsheet. |
| userName | Current comment author, shared with this control's workbook runtime. |
| workbook | The workbook value of Spreadsheet. |
Methods
| Method | Description |
|---|---|
| destroy | The destroy operation of Spreadsheet. |
| load | Loads XLSX/TXWB bytes or CSV/XML/JSON text/UTF-8 bytes atomically. Tabular formats replace the workbook with one worksheet. |
| save | Saves a snapshot with reusable format-specific options; PDF is save-only. |
| saveText | Saves 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 Spreadsheet value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
function inspectSpreadsheetUserName(spreadsheet: { userName: string }) {
const value = spreadsheet['userName'];
console.log('Spreadsheet.userName', value);
}