@univerjsuiindexclassesCanvaspopupservice

@univerjs/ui v0.5.4


Class: CanvasPopupService

Defined in: submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:58

Extends

Implements

Constructors

new CanvasPopupService()

new CanvasPopupService(): CanvasPopupService

Returns

CanvasPopupService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
popups$readonlyObservable<[string, IPopup][]>undefined-submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:61

Accessors

activePopupId

Get Signature

get activePopupId(): Nullable<string>

Defined in: submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:66

which popup is under hovering now

Returns

Nullable<string>

Implementation of

ICanvasPopupService.activePopupId


popups

Get Signature

get popups(): [string, IPopup][]

Defined in: submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:62

Returns

[string, IPopup][]

Implementation of

ICanvasPopupService.popups

Methods

addPopup()

addPopup(item): string

Defined in: submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:82

Parameters

ParameterType
itemIPopup

Returns

string

Implementation of

ICanvasPopupService.addPopup


dispose()

dispose(): void

Defined in: submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:74

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


removeAll()

removeAll(): void

Defined in: submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:105

Returns

void

Implementation of

ICanvasPopupService.removeAll


removePopup()

removePopup(id): void

Defined in: submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:99

Parameters

ParameterType
idstring

Returns

void

Implementation of

ICanvasPopupService.removePopup