Displays a message at the top of panel.
message(panel, msgOptions);

panel | string, name of the panel
msgOptions | object, message parameters

#### Description

Occasionally, you need to lock a panel and display a short message. The message method allows you to do just that. The method will slide an overlay at the top of the panel.
The second argument msgOptions is a map of properties as follows: options: { html : '', // html of the message body : '', // similar to body in w2popup, can be used instead of options.html buttons : '', // similar to buttons in w2popup, can be used instead of options.html width : 10, // width in px (if negative, then it is 100% of popup in message.width) height : 10, // height in px (if negative, then it is 100% of popup in message.height) hideOnClick : true, // if true, hide message if user clicks on it onOpen : null, // function to execute when message opens onClose : null // function to execute when message closes } To display the message w2layout.message('main', { width : 200, height : 60, html : '<div class="w2ui-centered"><div style="padding: 10px;">'+ ' message '+ '</div></div>' }); Call it again to close the message w2layout.message('main');