API Reference
@univerjs
@univerjs/ui
classes
Desktopconfirmservice

@univerjs/ui v0.4.2Docs


Class: DesktopConfirmService

Extends

Implements

Constructors

new DesktopConfirmService()

new DesktopConfirmService(_injector, _uiPartsService): DesktopConfirmService

Parameters

ParameterType
_injectorInjector
_uiPartsServiceIUIPartsService

Returns

DesktopConfirmService

Overrides

Disposable.constructor

Defined in

packages/ui/src/services/confirm/desktop-confirm.service.ts:30 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
_injectorreadonlyInjectorundefined-packages/ui/src/services/confirm/desktop-confirm.service.ts:31 (opens in a new tab)
_uiPartsServicereadonlyIUIPartsServiceundefined-packages/ui/src/services/confirm/desktop-confirm.service.ts:32 (opens in a new tab)
confirmOptions$readonlyBehaviorSubject<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

ParameterType
idstring

Returns

void

Implementation of

IConfirmService.close

Defined in

packages/ui/src/services/confirm/desktop-confirm.service.ts:75 (opens in a new tab)


confirm()

confirm(params): Promise<boolean>

Parameters

ParameterType
paramsIConfirmPartMethodOptions

Returns

Promise<boolean>

Implementation of

IConfirmService.confirm

Defined in

packages/ui/src/services/confirm/desktop-confirm.service.ts:59 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


open()

open(option): IDisposable

Parameters

ParameterType
optionIConfirmPartMethodOptions

Returns

IDisposable

Implementation of

IConfirmService.open

Defined in

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


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