@univerjsuiindexclassesCanvaspopupservice

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


Class: CanvasPopupService

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:93
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>

which popup is under hovering now

Returns

Nullable<string>

Implementation of

ICanvasPopupService.activePopupId

Defined in

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


popups

Get Signature

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

[string, IPopup][]

Implementation of

ICanvasPopupService.popups

Defined in

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

Methods

addPopup()

addPopup(item): string

Parameters

ParameterType
itemIPopup

Returns

string

Implementation of

ICanvasPopupService.addPopup

Defined in

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


dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

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


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


removeAll()

removeAll(): void

Returns

void

Implementation of

ICanvasPopupService.removeAll

Defined in

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


removePopup()

removePopup(id): void

Parameters

ParameterType
idstring

Returns

void

Implementation of

ICanvasPopupService.removePopup

Defined in

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