Skip to content
TREB Docs

TREBGlobal

TREBGlobal class

API class for creating spreadsheets. this is intended as a singleton, we will export an instance of the class.

Properties

versionPackage version

Methods

CreateSpreadsheetCreate a spreadsheet.

version

Package version

Declaration
public version: string;
public version: string;
Type
string
string

CreateSpreadsheet

Create a spreadsheet. The USER_DATA_TYPE template parameter is the type assigned to the user_data field of the spreadsheet instance — it can help simplify typing if you are storing extra data in spreadsheet files.

Just ignore this parameter if you don’t need it.

Signature
public CreateSpreadsheet <USER_DATA_TYPE = unknown> (options: EmbeddedSpreadsheetOptions): EmbeddedSpreadsheet<USER_DATA_TYPE>;
public CreateSpreadsheet <USER_DATA_TYPE = unknown> (options: EmbeddedSpreadsheetOptions): EmbeddedSpreadsheet<USER_DATA_TYPE>;
Returns
EmbeddedSpreadsheet<USER_DATA_TYPE>
EmbeddedSpreadsheet<USER_DATA_TYPE>
Parameters
options