AlertRequestConfiginterface
Settings for displaying an alert.
Properties (9)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| actions⚓︎ | Action[] | x | x | List of alert actions that will be represented as alert action buttons. |
| clickInterop⚓︎ | InteropSettings | x | x | Settings for invoking an Interop method when the alert is clicked. |
| data⚓︎ | any | x | x | Custom data to attach to the alert. |
| onCloseInterop⚓︎ | InteropSettings | x | x | Settings for invoking an Interop method when the "Close" button of the alert is clicked. |
| showCloseButton⚓︎ | boolean | true | x | If |
| target⚓︎ | ModalsContainerType | string | x | x | 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 |
| text⚓︎ | string | x | Text for the alert. |
|
| ttl⚓︎ | number | 5000 | x | Interval in milliseconds after which the alert will be automatically closed. |
| variant⚓︎ | "default" | "success" | "critical" | "info" | "warning" | x | Alert variant to use. |