# AlertDialog Type documentation

## TypeScript declaration

### [AlertDialog](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L36-L40>)

**Kind:** interface

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

An action dialog showing an alert

```
interface AlertDialog extends ActionDialogBase<AlertDialogResult>
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [confirmBtnName](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L39-L39>) (optional) | `TranslatableString` | Label of the confirmation button. |
| [delayDismiss](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L32-L32>) (optional, inherited) | `((result: "confirm") => Observable<"confirm">)` | Callback for delaying dismiss with a progress indicator until the returned [Observable](<https://rxjs.dev/api/index/class/Observable>) emits.<br><br>Inherited from [ActionDialogBase\<"confirm"\>](<index.html#t:ActionDialogBase>) |
| [heading](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L23-L23>) (optional, inherited) | `TranslatableString` | The heading.<br><br>Inherited from [ActionDialogBase\<"confirm"\>](<index.html#t:ActionDialogBase>) |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L25-L25>) (optional, inherited) | `string` | Icon displayed in the heading.<br><br>Inherited from [ActionDialogBase\<"confirm"\>](<index.html#t:ActionDialogBase>) |
| [message](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L21-L21>) (optional, inherited) | `TranslatableString` | The message.<br><br>Inherited from [ActionDialogBase\<"confirm"\>](<index.html#t:ActionDialogBase>) |
| [translationParams](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L27-L27>) (optional, inherited) | `Record<string, any>` | Parameters for the translate pipe.<br><br>Inherited from [ActionDialogBase\<"confirm"\>](<index.html#t:ActionDialogBase>) |
| [type](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L37-L37>) | `"alert"` |  |

### Types Documentation

### [ActionDialogBase](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L19-L33>)

**Kind:** interface

Base type for all action dialogs

```
interface ActionDialogBase<TResult>
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [delayDismiss](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L32-L32>) (optional) | `((result: TResult) => Observable<TResult>)` | Callback for delaying dismiss with a progress indicator until the returned [Observable](<https://rxjs.dev/api/index/class/Observable>) emits. |
| [heading](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L23-L23>) (optional) | `TranslatableString` | The heading. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L25-L25>) (optional) | `string` | Icon displayed in the heading. |
| [message](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L21-L21>) (optional) | `TranslatableString` | The message. |
| [translationParams](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L27-L27>) (optional) | `Record<string, any>` | Parameters for the translate pipe. |

### [AlertDialogResult](<https://github.com/siemens/element/blob/main/projects/element-ng/action-modal/si-action-dialog.types.ts#L8-L8>)

**Kind:** type alias

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

```
type AlertDialogResult = 'confirm'
```

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
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.

```
type TranslatableString = string & Translatable
```
