sets position of the window relative to the the screen
webix.ui({
view:"window",
position:"center",
//..window config
}).show();
The positioning function takes default window position as parameter and allow to modify its aspects.
webix.ui({
view:"window",
head:"",
body:{...},
position:function(state){
state.left = 20; //fixed values
state.top = 20;
state.width -=60; //relative values
state.height +=60;
}
});
Default window position is a top left corner of the viewport.
Back to top