docs/docs/reference/admin-ui-api/alerts/alert-context.mdx
The context object which is passed to the check, isAlert, label and action functions of an
AlertConfig object.
interface AlertContext {
injector: Injector;
dataService: DataService;
notificationService: NotificationService;
modalService: ModalService;
}
<MemberInfo kind="property" type={<a href='/reference/typescript-api/common/injector#injector'>Injector</a>} />
The Angular Injector which can be used to get instances of services and other providers available in the application.
<MemberInfo kind="property" type={<a href='/reference/admin-ui-api/services/data-service#dataservice'>DataService</a>} />
The DataService, which provides methods for querying the server-side data.
<MemberInfo kind="property" type={<a href='/reference/admin-ui-api/services/notification-service#notificationservice'>NotificationService</a>} />
The NotificationService, which provides methods for displaying notifications to the user.
<MemberInfo kind="property" type={<a href='/reference/admin-ui-api/services/modal-service#modalservice'>ModalService</a>} />
The ModalService, which provides methods for opening modal dialogs.
</div>