@univerjs/ui v0.5.0-beta.1 • Docs
Class: DesktopConfirmService
Extends
Implements
Constructors
new DesktopConfirmService()
new DesktopConfirmService(_injector, _uiPartsService): DesktopConfirmService
Parameters
Parameter | Type |
---|---|
_injector | Injector |
_uiPartsService | IUIPartsService |
Returns
Overrides
Defined in
submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:30
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 |
_injector | readonly | Injector | undefined | - | submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:31 |
_uiPartsService | readonly | IUIPartsService | undefined | - | submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:32 |
confirmOptions$ | readonly | BehaviorSubject <IConfirmPartMethodOptions []> | undefined | - | submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:28 |
Methods
_initUIPart()
protected _initUIPart(): void
Returns
void
Defined in
submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:83
close()
close(id): void
Parameters
Parameter | Type |
---|---|
id | string |
Returns
void
Implementation of
Defined in
submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:75
confirm()
confirm(params): Promise<boolean>
Parameters
Parameter | Type |
---|---|
params | IConfirmPartMethodOptions |
Returns
Promise
<boolean
>
Implementation of
Defined in
submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:59
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
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
open()
open(option): IDisposable
Parameters
Parameter | Type |
---|---|
option | IConfirmPartMethodOptions |
Returns
Implementation of
Defined in
submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:39