shows a non-modal info message box
content | string|object | mandatory, the text to show or an object with the config of a message |
type | string | optional, the type of a message box: "info", "success", "debug", or "error" |
expire | number | optional, the expire interval for a message in milliseconds, 4000 by default, -1 for not hiding the message |
id | id | optional, the id of a message box |
string | the ID of the message box |
// basic initialization
webix.message("Some message","info",-1,"message1");
// extended initialization
webix.message({
text:"Form Data is Invalid",
type:"error",
expire: 10000,
id:"message1"
});
Message boxes can be hidden using API:
var message = webix.message("Hi!");
webix.message.hide(message);
// or via the given message id
webix.message("Hi!","info",-1,"hi");
webix.message.hide("hi");