@univerjsdocs-uifacadeinterfacesIfuniverdocsuimixin

@univerjs/docs-ui v0.5.1Docs


Interface: IFUniverDocsUIMixin

Methods

createUniverDoc()

createUniverDoc(data): FDocument

Create a new document and get the API handler of that document.

Parameters

ParameterTypeDescription
dataPartial<IDocumentData>The snapshot of the document.

Returns

FDocument

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

ParameterTypeDescription
idstringThe document id.

Returns

null | FDocument

The document API instance.

Defined in

submodules/univer/packages/docs-ui/src/facade/f-univer.ts:35