Access via:
io.modals.alertsAlertsAPIinterface
The Alerts API provides a way to create and manage alerts within the io.Connect platform. There are predefined alert variants from which you can choose and you can configure various alert settings, such as the time to display the alerts before automatically closing them, whether to show a "Close" button, whether to target the current window or the entire platform, and more. You can also define alert actions that will be displayed as alert buttons and bind them to your custom, already registered Interop methods in order to provide functionality to your alerts.
The Alerts API is accessible via the io.modals.alerts object.
1 Methods
request()⚓︎
(config: AlertRequestConfig) => Promise<void>
Sends a request to the platform for displaying an alert.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| config⚓︎ | AlertRequestConfig | Settings for displaying an alert. |