API Reference
@univerjs
@univerjs/ui
classes
Desktopdialogservice

@univerjs/ui v0.4.2Docs


Class: DesktopDialogService

Extends

Implements

Constructors

new DesktopDialogService()

new DesktopDialogService(_injector, _uiPartsService): DesktopDialogService

Parameters

ParameterType
_injectorInjector
_uiPartsServiceIUIPartsService

Returns

DesktopDialogService

Overrides

Disposable.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_dialogOptionsprotectedIDialogPartMethodOptions[][]-packages/ui/src/services/dialog/desktop-dialog.service.ts:27 (opens in a new tab)
_dialogOptions$readonlySubject<IDialogPartMethodOptions[]>undefined-packages/ui/src/services/dialog/desktop-dialog.service.ts:28 (opens in a new tab)
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
_injectorreadonlyInjectorundefined-packages/ui/src/services/dialog/desktop-dialog.service.ts:31 (opens in a new tab)
_uiPartsServicereadonlyIUIPartsServiceundefined-packages/ui/src/services/dialog/desktop-dialog.service.ts:32 (opens in a new tab)

Methods

_initUIPart()

protected _initUIPart(): void

Returns

void

Defined in

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


close()

close(id): void

Parameters

ParameterType
idstring

Returns

void

Implementation of

IDialogService.close

Defined in

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


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

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


dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

packages/ui/src/services/dialog/desktop-dialog.service.ts:39 (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)


getDialogs$()

getDialogs$(): Observable<IDialogPartMethodOptions[]>

Returns

Observable<IDialogPartMethodOptions[]>

Implementation of

IDialogService.getDialogs$

Defined in

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


open()

open(option): IDisposable

Parameters

ParameterType
optionIDialogPartMethodOptions

Returns

IDisposable

Implementation of

IDialogService.open

Defined in

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


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