creates a modal box
text | string | the box text |
callback | function | the callback function |
HTMLElement | the modal box |
webix.modalbox({
title:"Custom title",
buttons:["Yes", "No", "Maybe"],
width:"500px",
text:"Any html content here"
});
The method can be used in 2 ways:
Please note, created boxes:
In the extended form, the method takes as a parameter an object with box parameters. The parameters are:
webix.modalbox({
title:"Custom title",
buttons:["Yes", "No", "Maybe"],
callback: function(result){
switch(result){
case 0:
//statement
break;
case 1:
//statement
break;
...
}
});
Back to top