@univerjs/core v0.4.2 • Docs
Interface: IResourceManagerService
Properties
Property | Type | Defined in |
---|---|---|
disposePluginResource | (pluginName : `SHEET_${string}_PLUGIN` | `DOC_${string}_PLUGIN`) => void | submodules/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 ) => IResources | submodules/univer/packages/core/src/services/resource-manager/type.ts:47 (opens in a new tab) |
loadResources | (unitId : string , resources ?: IResources ) => void | submodules/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 >) => IDisposable | submodules/univer/packages/core/src/services/resource-manager/type.ts:38 (opens in a new tab) |
Methods
getResources()
getResources(unitId)
getResources(unitId): IResources
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
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
Parameter | Type |
---|---|
unitId | string |
type | UniverInstanceType |
Returns
Defined in
submodules/univer/packages/core/src/services/resource-manager/type.ts:46 (opens in a new tab)
unloadResources()
unloadResources(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Defined in
submodules/univer/packages/core/src/services/resource-manager/type.ts:49 (opens in a new tab)