Except as otherwise noted,
the content of this page is licensed under the Creative Commons
Attribution 2.5 License.
MiniMessage class.
gadgets.MiniMessage(opt_moduleId, opt_container)
Element
createDismissibleMessage(message, opt_callback)
Element
createStaticMessage(message)
Element
createTimerMessage(message, seconds, opt_callback)
dismissMessage(message)
gadgets.MiniMessage(opt_moduleId, opt_container)
String opt_moduleId - Optional module Id
Element opt_container - Optional HTML container element where
mini-messages will appear.
Element createDismissibleMessage(message, opt_callback)
String, Object message - The message as an HTML string or DOM element
Function opt_callback - Optional callback function to be called when
the message is dismissed
Element HTML element of the created message
Element createStaticMessage(message)
String, Object message - The message as an HTML string or DOM element
Element HTML element of the created message
Element createTimerMessage(message, seconds, opt_callback)
String, Object message - The message as an HTML string or DOM element
number seconds - Number of seconds to wait before dismissing
the message
Function opt_callback - Optional callback function to be called when
the message is dismissed
Element HTML element of the created message
dismissMessage(message)
Element message - HTML element of the message to remove