As we just discussed, there are three different message types that we can create within a gadget, each of which has its own specific expiration criteria. Let’s go over them in more depth.
The dismissible message window is a standard alert that, if it’s not programmatically set to close, requires the user to interact with the window dismiss controls (generally an “x” in the top-right corner) to close it. These messages are generally developed to alert the user of changes within the gadget—such as new messages for her, or profile detail changes requesting an accept or cancel action from her.
We can create a dismissible mini-message simply by following the requirements described previously:
The full code for this sample is available at https://github.com/jcleblanc/programming-social-applications/blob/master/chapter_4/creating_message_dismissible.xml.
We add in our
to enable the