API Reference
@univerjs
@univerjs/core
interfaces
Iresourcemanagerservice

@univerjs/core v0.1.17Docs


Interface: IResourceManagerService

Properties

PropertyTypeDefined in
disposePluginResource(pluginName: `SHEET_${string}_PLUGIN` | `DOC_${string}_PLUGIN`) => voidsubmodules/univer/packages/core/src/services/resource-manager/type.ts:37 (opens in a new tab)
getAllResourceHooks() => IResourceHook<any>[]submodules/univer/packages/core/src/services/resource-manager/type.ts:38 (opens in a new tab)
getResources(unitId: string) => undefined | { data: string; id: string; name: string; }[]submodules/univer/packages/core/src/services/resource-manager/type.ts:39 (opens in a new tab)
loadResources(unitId: string, resources: undefined | { data: string; id: string; name: string; }[]) => voidsubmodules/univer/packages/core/src/services/resource-manager/type.ts:40 (opens in a new tab)
register$Observable<IResourceHook<any>>submodules/univer/packages/core/src/services/resource-manager/type.ts:35 (opens in a new tab)
registerPluginResource<T>(hook: IResourceHook<T>) => IDisposablesubmodules/univer/packages/core/src/services/resource-manager/type.ts:36 (opens in a new tab)

Methods

unloadResources()

unloadResources(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

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


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