info
Description
It is possible to register event listeners for listening to info, warning and error messages. By default, SDL LiveContent Create will show a dialog for all messages. The event listener can prevent the dialog to appear by returning false.
Example
function showInfo (evt)
{
return false;
}
Editor.addEventListener("info", showInfo);
Usage
This event fires after SDL LiveContent Create encountered any info level messages, but before the info dialog is shown. If you need to catch errors in the startup of SDL LiveContent Create , a good place to add the event listener is config.js which is located in the config folder of your SDL LiveContent Create implementation. Returning false in the event listener will prevent the dialog; default behavior, that is showing a dialog, will happen when returning any other value.
info event
Properties
- type
-
string.
A string identifying the error level. Can be
error.error, , orinfo - message
- String. A message describing the error, usually what is displayed to the user.
History
| version | event |
|---|---|
| SDL LiveContentCreate 5.1 | Introduction. |