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