SiActionDialogService documentation¶
provided in root
✓
The service provides convenient methods to show common modal dialogs. All return an observable, which emit the dialog results. After emitting, the observables complete. Therefore, clients do not need to unsubscribe.
Attributes and Methods¶
Name | Type | Default | Description |
---|---|---|---|
showActionDialog(...) ¶ | <(T: ActionDialog )> (dialog: T , diOptions: ModalDependencyInjectionOptions ) => Observable <ActionDialogReturnType <T >> | Shows an action dialog Returns Observable for the result of the dialog. Need to subscribe() to show the dialogParameters
| |
showAlertDialog(...) | (message: string , heading: string , confirmBtnName: string , translationParams: { [ key: string ]: any } }, icon: string , diOptions: ModalDependencyInjectionOptions ) => Observable <"confirm" > | Show an alert dialog. Deprecated: use showActionDialog({ type: 'alert', ... }) insteadParameters | |
showConfirmationDialog(...) | (message: string , heading: string , confirmBtnName: string , declineBtnName: string , translationParams: { [ key: string ]: any } }, icon: string , diOptions: ModalDependencyInjectionOptions ) => Observable <ConfirmationDialogResult > | Show a confirmation dialog. Deprecated: use showActionDialog({ type: 'confirmation', ... }) insteadParameters | |
showDeleteConfirmationDialog(...) | (message: string , heading: string , deleteBtnName: string , cancelBtnName: string , translationParams: { [ key: string ]: any } }, icon: string , diOptions: ModalDependencyInjectionOptions ) => Observable <DeleteConfirmationDialogResult > | Show a dialog confirming a deletion. Deprecated: use showActionDialog({ type: 'delete-confirm', ... }) insteadParameters | |
showEditDiscardDialog(...) | (disableSave: boolean , message: string , heading: string , saveBtnName: string , discardBtnName: string , cancelBtnName: string , disableSaveMessage: string , disableSaveDiscardBtnName: string , translationParams: { [ key: string ]: any } }, icon: string , diOptions: ModalDependencyInjectionOptions ) => Observable <EditDiscardDialogResult > | Show an edit dialog with the option to discard. Deprecated: use showActionDialog({ type: 'edit-discard', ... }) insteadParameters |
Types Documentation¶
Returns the return value type for the given action dialog type |
---|
All possible action dialogs. |
---|
An action dialog showing an alert | ||||||||
---|---|---|---|---|---|---|---|---|
|
An action dialog for a confirmation. | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
An action dialog for an edit/discard prompt. | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
An action dialog for a delete confirmation. | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
|
Variable Deprecated: Will be removed in a future release. Use the string values directly. |
---|
Variable Deprecated: Will be removed in a future release. Use the string values directly. |
---|
Variable Deprecated: Will be removed in a future release. Use the string values directly. |
---|
Variable Deprecated: Will be removed in a future release. Use the string values directly. |
---|
Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality. |
---|
Translatable import imported from @siemens/element-translate-ng |
---|
Except where otherwise noted, content on this site is licensed under MIT License.