# AlertRequestConfig

**Kind**: interface | **Module**: [Modals](https://docs.interop.io/desktop/reference/javascript/modals/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/modals/alertrequestconfig/index.html

Settings for displaying an alert.

## Properties

- **`actions`** (`Action[]`, optional)
  List of alert actions that will be represented as alert action buttons.
- **`clickInterop`** (`InteropSettings`, optional)
  Settings for invoking an Interop method when the alert is clicked.
- **`data`** (`any`, optional)
  Custom data to attach to the alert.
- **`onCloseInterop`** (`InteropSettings`, optional)
  Settings for invoking an Interop method when the "Close" button of the alert is clicked.
- **`showCloseButton`** (`boolean`, optional) default: `true`
  If `true`, the alert will contain a "Close" button.
- **`target`** (`ModalsContainerType | string`, optional)
  Specifies the container in which the alert will be displayed. This can be the current window container (e.g., the current Workspace),
  the entire io.Connect platform, or a specific window. To target a specific window, provide the Interop instance ID as a string.
  Defaults to `"Global"` in **io.Connect Desktop**. Defaults to `"WindowContainer"` in **io.Connect Browser**.
- **`text`** (`string`, required)
  Text for the alert.
- **`ttl`** (`number`, optional) default: `5000`
  Interval in milliseconds after which the alert will be automatically closed.
- **`variant`** (`"default" | "success" | "critical" | "info" | "warning"`, required)
  Alert variant to use.

## Related types

- [Action](https://docs.interop.io/desktop/reference/javascript/modals/action/index.md)
- [InteropSettings](https://docs.interop.io/desktop/reference/javascript/modals/interopsettings/index.md)
- [ModalsContainerType](https://docs.interop.io/desktop/reference/javascript/modals/modalscontainertype/index.md)
