@univerjsuiindexclassesDesktopdialogservice

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


Class: DesktopDialogService

Extends

Implements

Constructors

new DesktopDialogService()

new DesktopDialogService(_injector, _uiPartsService): DesktopDialogService

Parameters

ParameterType
_injectorInjector
_uiPartsServiceIUIPartsService

Returns

DesktopDialogService

Overrides

Disposable.constructor

Defined in

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

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:93
_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

Returns

void

Defined in

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


close()

close(id): void

Parameters

ParameterType
idstring

Returns

void

Implementation of

IDialogService.close

Defined in

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


closeAll()

closeAll(expectIds?): void

Parameters

ParameterTypeDescription
expectIds?string[]The specified dialog ids

Returns

void

Description

close all dialogs except the specified ones

Implementation of

IDialogService.closeAll

Defined in

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


dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

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


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


getDialogs$()

getDialogs$(): Observable<IDialogPartMethodOptions[]>

Returns

Observable<IDialogPartMethodOptions[]>

Implementation of

IDialogService.getDialogs$

Defined in

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


open()

open(option): IDisposable

Parameters

ParameterType
optionIDialogPartMethodOptions

Returns

IDisposable

Implementation of

IDialogService.open

Defined in

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