@univerjs/ui v0.4.2 • Docs
Class: DesktopDialogService
Extends
Implements
Constructors
new DesktopDialogService()
new DesktopDialogService(_injector, _uiPartsService): DesktopDialogService
Parameters
Parameter | Type |
---|---|
_injector | Injector |
_uiPartsService | IUIPartsService |
Returns
Overrides
Defined in
packages/ui/src/services/dialog/desktop-dialog.service.ts:30 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_dialogOptions | protected | IDialogPartMethodOptions [] | [] | - | packages/ui/src/services/dialog/desktop-dialog.service.ts:27 (opens in a new tab) |
_dialogOptions$ | readonly | Subject <IDialogPartMethodOptions []> | undefined | - | packages/ui/src/services/dialog/desktop-dialog.service.ts:28 (opens in a new tab) |
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
_injector | readonly | Injector | undefined | - | packages/ui/src/services/dialog/desktop-dialog.service.ts:31 (opens in a new tab) |
_uiPartsService | readonly | IUIPartsService | undefined | - | 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
Parameter | Type |
---|---|
id | string |
Returns
void
Implementation of
Defined in
packages/ui/src/services/dialog/desktop-dialog.service.ts:66 (opens in a new tab)
closeAll()
closeAll(expectIds?): void
Parameters
Parameter | Type | Description |
---|---|---|
expectIds ? | string [] | The specified dialog ids |
Returns
void
Description
close all dialogs except the specified ones
Implementation of
Defined in
packages/ui/src/services/dialog/desktop-dialog.service.ts:75 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Overrides
Defined in
packages/ui/src/services/dialog/desktop-dialog.service.ts:39 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
getDialogs$()
getDialogs$(): Observable<IDialogPartMethodOptions[]>
Returns
Observable
<IDialogPartMethodOptions
[]>
Implementation of
Defined in
packages/ui/src/services/dialog/desktop-dialog.service.ts:84 (opens in a new tab)
open()
open(option): IDisposable
Parameters
Parameter | Type |
---|---|
option | IDialogPartMethodOptions |
Returns
Implementation of
Defined in
packages/ui/src/services/dialog/desktop-dialog.service.ts:45 (opens in a new tab)