TypeScript API
TypeScript applications use the same packages as JavaScript applications, and their declarations ship with the packages. The TypeScript API documents three of them: the browser editor of @txtextcontrol/tx-sheet-control, the Node.js server of @txtextcontrol/tx-sheet-control-server and the Angular integration, which the editor package exports from @txtextcontrol/tx-sheet-control/angular. Choose the API of the application you are writing.
Next to the runtime classes, functions, constants and enumerations of the JavaScript API, the TypeScript API additionally lists the interfaces and type aliases that describe the values of the API, such as SpreadsheetOptions. They exist only for the compiler: an interface is never called as a constructor. The type names in a signature describe the values a member accepts and do not mean that you install separate helper packages.
The Three APIs
| Browser Editor | Node.js Server | Angular | |
|---|---|---|---|
| Package | @txtextcontrol/tx-sheet-control | @txtextcontrol/tx-sheet-control-server | @txtextcontrol/tx-sheet-control/angular |
| Start with | Spreadsheet and SpreadsheetOptions | ServerSheetControl and ServerSheetControlOptions | TXSheetControlComponent |
| Classes and interfaces | 35 classes, 161 interfaces | 32 classes, 154 interfaces | 3 classes, 6 interfaces |
| Type aliases, functions, constants, enumerations | 27, 12, 9 and 1 | 30, 1, 1 and 1 | 3, 3, 2 and 1 |
| Guide | TypeScript in Getting Started | Node.js in Getting Started | Angular in Getting Started |
Workbook handles are obtained from their owner; the related object-model types listed in a reference are not an instruction to import extra packages.
Find the Right Page
| If you want to | Read |
|---|---|
| Type the options and the workbook of the browser editor | Browser Editor |
| Write a backend job in TypeScript with the server package | Node.js Server |
| Bind the editor component in an Angular template | Angular |
Pages in This Section
- Browser Editor: the declarations of
@txtextcontrol/tx-sheet-control. - Node.js Server: the declarations of
@txtextcontrol/tx-sheet-control-server. - Angular: the Angular integration of the editor package.