@univerjs/docs-ui v0.5.1 • Docs
Interface: IFUniverDocsUIMixin
Methods
createUniverDoc()
createUniverDoc(data): FDocument
Create a new document and get the API handler of that document.
Parameters
Parameter | Type | Description |
---|---|---|
data | Partial <IDocumentData > | The snapshot of the document. |
Returns
FDocument API instance.
Defined in
submodules/univer/packages/docs-ui/src/facade/f-univer.ts:28
getActiveDocument()
getActiveDocument(): null | FDocument
Get the currently focused Univer document.
Returns
null
| FDocument
The currently focused Univer document.
Defined in
submodules/univer/packages/docs-ui/src/facade/f-univer.ts:41
getUniverDoc()
getUniverDoc(id): null | FDocument
Get the document API handler by the document id.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The document id. |
Returns
null
| FDocument
The document API instance.
Defined in
submodules/univer/packages/docs-ui/src/facade/f-univer.ts:35