@univerjs/ui v0.5.0-beta.1Docs


Class: UIPartsService

Extends

Implements

Constructors

new UIPartsService()

new UIPartsService(): UIPartsService

Returns

UIPartsService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
componentRegistered$readonlyObservable<string>undefined-submodules/univer/packages/ui/src/services/parts/parts.service.ts:49

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

submodules/univer/packages/ui/src/services/parts/parts.service.ts:51


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


getComponents()

getComponents(part): Set<any>

Parameters

ParameterType
partstring

Returns

Set<any>

Implementation of

IUIPartsService.getComponents

Defined in

submodules/univer/packages/ui/src/services/parts/parts.service.ts:75


registerComponent()

registerComponent(part, componentFactory): IDisposable

Parameters

ParameterType
partstring
componentFactory() => ComponentType<{}>

Returns

IDisposable

Implementation of

IUIPartsService.registerComponent

Defined in

submodules/univer/packages/ui/src/services/parts/parts.service.ts:57