@univerjsuiindexclassesDesktopconfirmservice

@univerjs/ui v0.5.0-beta.1Docs


Class: DesktopConfirmService

Extends

Implements

Constructors

new DesktopConfirmService()

new DesktopConfirmService(_injector, _uiPartsService): DesktopConfirmService

Parameters

ParameterType
_injectorInjector
_uiPartsServiceIUIPartsService

Returns

DesktopConfirmService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:30

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
_injectorreadonlyInjectorundefined-submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:31
_uiPartsServicereadonlyIUIPartsServiceundefined-submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:32
confirmOptions$readonlyBehaviorSubject<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

ParameterType
idstring

Returns

void

Implementation of

IConfirmService.close

Defined in

submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:75


confirm()

confirm(params): Promise<boolean>

Parameters

ParameterType
paramsIConfirmPartMethodOptions

Returns

Promise<boolean>

Implementation of

IConfirmService.confirm

Defined in

submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:59


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


open()

open(option): IDisposable

Parameters

ParameterType
optionIConfirmPartMethodOptions

Returns

IDisposable

Implementation of

IConfirmService.open

Defined in

submodules/univer/packages/ui/src/services/confirm/desktop-confirm.service.ts:39