@univerjsuiindexclassesDesktopdialogservice

@univerjs/ui v0.5.4


Class: DesktopDialogService

Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:26

Extends

Implements

Constructors

new DesktopDialogService()

new DesktopDialogService(_injector, _uiPartsService): DesktopDialogService

Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:30

Parameters

ParameterType
_injectorInjector
_uiPartsServiceIUIPartsService

Returns

DesktopDialogService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_dialogOptionsprotectedIDialogPartMethodOptions[][]-submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:27
_dialogOptions$readonlySubject<IDialogPartMethodOptions[]>undefined-submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:28
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
_injectorreadonlyInjectorundefined-submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:31
_uiPartsServicereadonlyIUIPartsServiceundefined-submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:32

Methods

_initUIPart()

protected _initUIPart(): void

Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:88

Returns

void


close()

close(id): void

Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:66

Parameters

ParameterType
idstring

Returns

void

Implementation of

IDialogService.close


closeAll()

closeAll(expectIds?): void

Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:75

Parameters

ParameterTypeDescription
expectIds?string[]The specified dialog ids

Returns

void

Description

close all dialogs except the specified ones

Implementation of

IDialogService.closeAll


dispose()

dispose(): void

Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:39

Returns

void

Overrides

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getDialogs$()

getDialogs$(): Observable<IDialogPartMethodOptions[]>

Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:84

Returns

Observable<IDialogPartMethodOptions[]>

Implementation of

IDialogService.getDialogs$


open()

open(option): IDisposable

Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:45

Parameters

ParameterType
optionIDialogPartMethodOptions

Returns

IDisposable

Implementation of

IDialogService.open