P4Admin Alerts
==============

You can add custom alerts to P4Admin using the Alerts API. To add a custom alert, use the menu "Manage Tools" -> "HTML Alerts...". From there, you can create an entry.

You must provide both an URL from which to load the alert code. It can be a "file:", "http[s]:", or "p4:" url. Your code defines a function variable returning an object with at least one property presenting a function. This function will be the entry point used to call your Alert.

The DemonstrationAlert.js file provides a sample alert. When making a new alert entry in P4Admin, you need to provide these values:

URL: [path to]/DemonstrationAlert.js

Entry Point: Change.runAlert



