@univerjs/ui v0.5.4


Class: UIPartsService

Defined in: submodules/univer/packages/ui/src/services/parts/parts.service.ts:54

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:96
componentRegistered$readonlyObservable<string>undefined-submodules/univer/packages/ui/src/services/parts/parts.service.ts:58
uiVisibleChange$readonlyObservable<{ ui: string; visible: boolean; }>undefined-submodules/univer/packages/ui/src/services/parts/parts.service.ts:61

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/ui/src/services/parts/parts.service.ts:63

Returns

void

Overrides

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getComponents()

getComponents(part): Set<any>

Defined in: submodules/univer/packages/ui/src/services/parts/parts.service.ts:96

Parameters

ParameterType
partstring

Returns

Set<any>

Implementation of

IUIPartsService.getComponents


isUIVisible()

isUIVisible(part): boolean

Defined in: submodules/univer/packages/ui/src/services/parts/parts.service.ts:74

Parameters

ParameterType
partstring

Returns

boolean

Implementation of

IUIPartsService.isUIVisible


registerComponent()

registerComponent(part, componentFactory): IDisposable

Defined in: submodules/univer/packages/ui/src/services/parts/parts.service.ts:78

Parameters

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

Returns

IDisposable

Implementation of

IUIPartsService.registerComponent


setUIVisible()

setUIVisible(part, visible): void

Defined in: submodules/univer/packages/ui/src/services/parts/parts.service.ts:69

Parameters

ParameterType
partstring
visibleboolean

Returns

void

Implementation of

IUIPartsService.setUIVisible