@univerjs/ui v0.5.0-beta.1 • Docs
Class: DesktopDialogService
Extends
Implements
Constructors
new DesktopDialogService()
new DesktopDialogService(_injector, _uiPartsService): DesktopDialogService
Parameters
Parameter | Type |
---|---|
_injector | Injector |
_uiPartsService | IUIPartsService |
Returns
Overrides
Defined in
submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:30
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:93 |
_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
Returns
void
Defined in
submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:88
close()
close(id): void
Parameters
Parameter | Type |
---|---|
id | string |
Returns
void
Implementation of
Defined in
submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:66
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
submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:75
dispose()
dispose(): void
Returns
void
Overrides
Defined in
submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:39
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
getDialogs$()
getDialogs$(): Observable<IDialogPartMethodOptions[]>
Returns
Observable
<IDialogPartMethodOptions
[]>
Implementation of
Defined in
submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:84
open()
open(option): IDisposable
Parameters
Parameter | Type |
---|---|
option | IDialogPartMethodOptions |
Returns
Implementation of
Defined in
submodules/univer/packages/ui/src/services/dialog/desktop-dialog.service.ts:45