@univerjs/sheets v0.5.1 • Docs
Interface: IFUniverSheetsMixin
Methods
createUniverSheet()
createUniverSheet(data): FWorkbook
Create a new spreadsheet and get the API handler of that spreadsheet.
Parameters
Parameter | Type | Description |
---|---|---|
data | Partial <IWorkbookData > | The snapshot of the spreadsheet. |
Returns
FWorkbook API instance.
Defined in
submodules/univer/packages/sheets/src/facade/f-univer.ts:29
getActiveWorkbook()
getActiveWorkbook(): null | FWorkbook
Get the currently focused Univer spreadsheet.
Returns
null
| FWorkbook
The currently focused Univer spreadsheet.
Defined in
submodules/univer/packages/sheets/src/facade/f-univer.ts:35
getPermission()
getPermission(): FPermission
Get the PermissionInstance.
Returns
- The PermissionInstance.
Defined in
submodules/univer/packages/sheets/src/facade/f-univer.ts:48
getUniverSheet()
getUniverSheet(id): null | FWorkbook
Get the spreadsheet API handler by the spreadsheet id.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The spreadsheet id. |
Returns
null
| FWorkbook
The spreadsheet API instance.
Defined in
submodules/univer/packages/sheets/src/facade/f-univer.ts:42