OverlayBox

class webix.OverlayBox()

Overlaybox mixin

External references

Official documentation page.

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
webix.OverlayBox = {
    showOverlay:function(message){
        if (!this._overlay){
            this._overlay = webix.html.create("DIV",{ "class":"webix_overlay" },(message||""));
            webix.html.insertBefore(this._overlay, this._viewobj.firstChild, this._viewobj);
            this._viewobj.style.position = "relative";
        } else
            this._overlay.innerHTML = message;
    },
    hideOverlay:function(){
        if (this._overlay){
            webix.html.remove(this._overlay);
            this._overlay = null;
        }
    }
};

/*scrollable view with another view insize*/