@univerjs/ui v0.4.2 • Docs
Class: UIPartsService
Extends
Implements
Constructors
new UIPartsService()
new UIPartsService(): UIPartsService
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
componentRegistered$ | readonly | Observable <string > | undefined | - | packages/ui/src/services/parts/parts.service.ts:49 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Overrides
Defined in
packages/ui/src/services/parts/parts.service.ts:51 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
getComponents()
getComponents(part): Set<any>
Parameters
Parameter | Type |
---|---|
part | string |
Returns
Set
<any
>
Implementation of
Defined in
packages/ui/src/services/parts/parts.service.ts:75 (opens in a new tab)
registerComponent()
registerComponent(part, componentFactory): IDisposable
Parameters
Parameter | Type |
---|---|
part | string |
componentFactory | () => ComponentType <{}> |
Returns
Implementation of
IUIPartsService
.registerComponent
Defined in
packages/ui/src/services/parts/parts.service.ts:57 (opens in a new tab)