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
Parameter | Type |
---|---|
_injector | Injector |
_uiPartsService | IUIPartsService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_dialogOptions | protected | IDialogPartMethodOptions [] | [] | - | submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:27 |
_dialogOptions$ | readonly | Subject <IDialogPartMethodOptions []> | undefined | - | submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:28 |
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
_injector | readonly | Injector | undefined | - | submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:31 |
_uiPartsService | readonly | IUIPartsService | undefined | - | 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
Parameter | Type |
---|---|
id | string |
Returns
void
Implementation of
closeAll()
closeAll(expectIds?): void
Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:75
Parameters
Parameter | Type | Description |
---|---|---|
expectIds ? | string [] | The specified dialog ids |
Returns
void
Description
close all dialogs except the specified ones
Implementation of
dispose()
dispose(): void
Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:39
Returns
void
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getDialogs$()
getDialogs$(): Observable<IDialogPartMethodOptions[]>
Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:84
Returns
Observable
<IDialogPartMethodOptions
[]>
Implementation of
open()
open(option): IDisposable
Defined in: submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:45
Parameters
Parameter | Type |
---|---|
option | IDialogPartMethodOptions |