where | object, where to display |
options | object, optional, additional parametes |
xxxxxxxxxx
{
box : null, // html element where it will display message
path : null, // path to a w2ui object that is locked
title : null, // css selector for a title (if any)
body : null // css selector for a body
}
xxxxxxxxxx
w2utils.message.call(this, {
box : this.box,
path : 'w2ui.' + this.name,
title : '.w2ui-grid-header:visible',
body : '.w2ui-grid-box'
}, options);
xxxxxxxxxx
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 : false, // 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
}