@univerjs/core v0.5.0-beta.1 • Docs
Interface: IResourceManagerService
Properties
Property | Type | Defined in |
---|---|---|
disposePluginResource | (pluginName : `SHEET_${string}_PLUGIN` | `DOC_${string}_PLUGIN`) => void | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:39 |
getAllResourceHooks | () => IResourceHook <any >[] | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:40 |
getResourcesByType | (unitId : string , type : UniverInstanceType ) => IResources | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:47 |
loadResources | (unitId : string , resources ?: IResources ) => void | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:48 |
register$ | Observable <IResourceHook <any >> | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:37 |
registerPluginResource | <T >(hook : IResourceHook <T >) => IDisposable | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:38 |
Methods
getResources()
getResources(unitId)
getResources(unitId): IResources
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
Deprecated
You should get resource with type specified.
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:45
getResources(unitId, type)
getResources(unitId, type): IResources
Parameters
Parameter | Type |
---|---|
unitId | string |
type | UniverInstanceType |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:46
unloadResources()
unloadResources(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/resource-manager/type.ts:49