@univerjs/ui v0.4.2 • Docs
Class: CanvasPopupService
Extends
Implements
Constructors
new CanvasPopupService()
new CanvasPopupService(): CanvasPopupService
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) |
popups$ | readonly | Observable <[string , IPopup ][]> | undefined | - | packages/ui/src/services/popup/canvas-popup.service.ts:57 (opens in a new tab) |
Accessors
activePopupId
get activePopupId(): Nullable<string>
which popup is under hovering now
Returns
Nullable
<string
>
Implementation of
ICanvasPopupService
.activePopupId
Defined in
packages/ui/src/services/popup/canvas-popup.service.ts:62 (opens in a new tab)
popups
get popups(): [string, IPopup][]
Returns
[string
, IPopup
][]
Implementation of
Defined in
packages/ui/src/services/popup/canvas-popup.service.ts:58 (opens in a new tab)
Methods
addPopup()
addPopup(item): string
Parameters
Parameter | Type |
---|---|
item | IPopup |
Returns
string
Implementation of
Defined in
packages/ui/src/services/popup/canvas-popup.service.ts:78 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Overrides
Defined in
packages/ui/src/services/popup/canvas-popup.service.ts:70 (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)
removeAll()
removeAll(): void
Returns
void
Implementation of
Defined in
packages/ui/src/services/popup/canvas-popup.service.ts:101 (opens in a new tab)
removePopup()
removePopup(id): void
Parameters
Parameter | Type |
---|---|
id | string |
Returns
void
Implementation of
ICanvasPopupService
.removePopup
Defined in
packages/ui/src/services/popup/canvas-popup.service.ts:95 (opens in a new tab)