@univerjs/ui v0.5.0-beta.1 • 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 | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
popups$ | readonly | Observable <[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
Defined in
submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:62
Methods
addPopup()
addPopup(item): string
Parameters
Parameter | Type |
---|---|
item | IPopup |
Returns
string
Implementation of
Defined in
submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:82
dispose()
dispose(): void
Returns
void
Overrides
Defined in
submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:74
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
removeAll()
removeAll(): void
Returns
void
Implementation of
Defined in
submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:105
removePopup()
removePopup(id): void
Parameters
Parameter | Type |
---|---|
id | string |
Returns
void
Implementation of
ICanvasPopupService
.removePopup
Defined in
submodules/univer/packages/ui/src/services/popup/canvas-popup.service.ts:99