The template includes a complete set of messages styles, along with an API to display/remove them.
<p class="message">Standard message</p>
<p class="message icon-speech">Standard message</p>
<p class="message"> <a href="#" title="Hide message" class="close">✕</a> Message with close button </p>
<p class="message"> <a href="#" title="Hide message" class="close show-on-parent-hover">✕</a> Close button on hover only </p>
<p class="message"> <span class="block-arrow"><span></span></span> Arrow top </p>
<p class="message"> <span class="dark-stripes"></span> Message with stripes </p>
The big message style may inherit from all message styles, and includes several specific features:
<p class="big-message">Basic big message</p>
<p class="big-message"> <strong>Big message with title</strong><br> And a nice baseline, too. </p>
<p class="big-message"> <span class="big-message-icon icon-speech"></span> <strong>Big message with icon</strong><br> Color is inherited from baseline text </p>Big message with icon on the right
<p class="big-message"> <span class="big-message-icon icon-speech right-side with-text blue">Here I am!</span> <strong>Big message with icon on the right</strong><br> May be colored and have a baseline, too! </p>
The template includes a complete API to display and hide messages:
Use the options to create your own messages
Display a message on the target element
@param string message the text or html message to display
@param object options - optional (see defaults for a complete list)
@return jQuery the messages nodes
Clear element's message(s)
@param string message the message to remove (can be omitted)
@param boolean animate use an animation (foldAndRemove) to remove the messages (default: false)
@return jQuery the chain