API Reference
@univerjs
@univerjs/ui
classes
Uipartsservice

@univerjs/ui v0.4.2Docs


Class: UIPartsService

Extends

Implements

Constructors

new UIPartsService()

new UIPartsService(): UIPartsService

Returns

UIPartsService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
componentRegistered$readonlyObservable<string>undefined-packages/ui/src/services/parts/parts.service.ts:49 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

packages/ui/src/services/parts/parts.service.ts:51 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getComponents()

getComponents(part): Set<any>

Parameters

ParameterType
partstring

Returns

Set<any>

Implementation of

IUIPartsService.getComponents

Defined in

packages/ui/src/services/parts/parts.service.ts:75 (opens in a new tab)


registerComponent()

registerComponent(part, componentFactory): IDisposable

Parameters

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

Returns

IDisposable

Implementation of

IUIPartsService.registerComponent

Defined in

packages/ui/src/services/parts/parts.service.ts:57 (opens in a new tab)


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