API Reference
@univerjs
@univerjs/core
interfaces
Iresourcemanagerservice

@univerjs/core v0.4.2Docs


Interface: IResourceManagerService

Properties

PropertyTypeDefined in
disposePluginResource(pluginName: `SHEET_${string}_PLUGIN` | `DOC_${string}_PLUGIN`) => voidsubmodules/univer/packages/core/src/services/resource-manager/type.ts:39 (opens in a new tab)
getAllResourceHooks() => IResourceHook<any>[]submodules/univer/packages/core/src/services/resource-manager/type.ts:40 (opens in a new tab)
getResourcesByType(unitId: string, type: UniverInstanceType) => IResourcessubmodules/univer/packages/core/src/services/resource-manager/type.ts:47 (opens in a new tab)
loadResources(unitId: string, resources?: IResources) => voidsubmodules/univer/packages/core/src/services/resource-manager/type.ts:48 (opens in a new tab)
register$Observable<IResourceHook<any>>submodules/univer/packages/core/src/services/resource-manager/type.ts:37 (opens in a new tab)
registerPluginResource<T>(hook: IResourceHook<T>) => IDisposablesubmodules/univer/packages/core/src/services/resource-manager/type.ts:38 (opens in a new tab)

Methods

getResources()

getResources(unitId)

getResources(unitId): IResources
Parameters
ParameterType
unitIdstring
Returns

IResources

Deprecated

You should get resource with type specified.

Defined in

submodules/univer/packages/core/src/services/resource-manager/type.ts:45 (opens in a new tab)

getResources(unitId, type)

getResources(unitId, type): IResources
Parameters
ParameterType
unitIdstring
typeUniverInstanceType
Returns

IResources

Defined in

submodules/univer/packages/core/src/services/resource-manager/type.ts:46 (opens in a new tab)


unloadResources()

unloadResources(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

submodules/univer/packages/core/src/services/resource-manager/type.ts:49 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.