API Reference
@univerjs
@univerjs/ui
interfaces
Icanvaspopupservice

@univerjs/ui v0.4.2Docs


Interface: ICanvasPopupService

Properties

PropertyTypeDefined in
popups$Observable<[string, IPopup][]>packages/ui/src/services/popup/canvas-popup.service.ts:42 (opens in a new tab)

Accessors

activePopupId

get activePopupId(): Nullable<string>

which popup is under hovering now

Returns

Nullable<string>

Defined in

packages/ui/src/services/popup/canvas-popup.service.ts:49 (opens in a new tab)


popups

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

Returns

[string, IPopup][]

Defined in

packages/ui/src/services/popup/canvas-popup.service.ts:44 (opens in a new tab)

Methods

addPopup()

addPopup(item): string

Parameters

ParameterType
itemIPopup

Returns

string

Defined in

packages/ui/src/services/popup/canvas-popup.service.ts:39 (opens in a new tab)


removeAll()

removeAll(): void

Returns

void

Defined in

packages/ui/src/services/popup/canvas-popup.service.ts:41 (opens in a new tab)


removePopup()

removePopup(id): void

Parameters

ParameterType
idstring

Returns

void

Defined in

packages/ui/src/services/popup/canvas-popup.service.ts:40 (opens in a new tab)


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