Skip to content
Edit this page

SiActionDialogService documentation

import { SiActionDialogService } from '@siemens/element-ng/action-modal';

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 Description
showActionDialog()

Shows an action dialog

Returns: Observable for the result of the dialog. Need to subscribe() to show the dialog

Parameters

Types Documentation

import type { ActionDialog } from '@siemens/element-ng/action-modal';

All possible action dialogs.

import type { ActionDialogReturnType } from '@siemens/element-ng/action-modal';

Returns the return value type for the given action dialog type

import type { ModalDependencyInjectionOptions } from '@siemens/element-ng/modal';
Properties

Base type for all action dialogs

Properties

import type { AlertDialog } from '@siemens/element-ng/action-modal';

An action dialog showing an alert

Properties

import type { AlertDialogResult } from '@siemens/element-ng/action-modal';

import type { ConfirmationDialog } from '@siemens/element-ng/action-modal';

An action dialog for a confirmation.

Properties

ConfirmationDialogResult

'confirm' | 'decline'
type alias
import type { ConfirmationDialogResult } from '@siemens/element-ng/action-modal';

import type { EditDiscardDialog } from '@siemens/element-ng/action-modal';

An action dialog for an edit/discard prompt.

Properties

EditDiscardDialogResult

'save' | 'discard' | 'cancel'
type alias
import type { EditDiscardDialogResult } from '@siemens/element-ng/action-modal';

import type { DeleteConfirmationDialog } from '@siemens/element-ng/action-modal';

An action dialog for a delete confirmation.

Properties

import type { DeleteConfirmationDialogResult } from '@siemens/element-ng/action-modal';

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

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.


Except where otherwise noted, content on this site is licensed under MIT License.