Listening to Alerts
Summary
- Event published by AdapTable whenever an Alert has been triggered by AdapTable
- Provides details of the Alert that fired and the Alert Definition that triggered it
The Alert Fired Event is published by AdapTable whenever an Alert is fired.
The EventInfo includes full details of the Alert Definition that triggered the Alert, the Change that occurred in AG Grid and other related information.
The Change that can be triggered the Alert can be one of 2 types:
Cell Change- the value of a Cell has changedRow Change- a row has been added, updated, or deleted
Deep Dive
Understanding the Alert Fired Event
Events: Alert Fired
- This Demo listens to the Alert Fired Event and sends details as a System Status Message. There are 2 Alerts:
- Cell Changed:
ErrorAlert if GitHub Stars Column isLessThan1000 - Row Changed:
WarningAlert when a Row is deleted
- Cell Changed:
Try It Out
- Trigger Alerts and then see how the Alert Fired Event is handled by:
- Editing a cell in the GitHub Stars Column to a value
<1000 - Clicking the Delete Row Button
- Editing a cell in the GitHub Stars Column to a value