Triggering Status Updates

To display a status message you can do so in a similar fashion to displaying a loading message. The difference is that you trigger the infostart.status event, you must include the message to display, and you must specify the type of message.

Each message type will display in a different colour to indicate to the user whether an operation was successful or if some error occurred. The available types are as follows:

For example to trigger a message that indicates success, you might use the following code:

Recite.Delegate.trigger(
   'info.status', 
   {
       msg  : 'Something good happened!', 
       type : Recite_Status.Types.SUCCESS
   }
);