position

sets the position of the window relative to the the screen

string|function position;

Values

  • "top"
  • "bottom"
  • "left"
  • "right"
  • Example

    webix.ui({
        view: "sidemenu",
        position: "right",
        width: 200,
        body:{
            ...
        }
    });


    Default value:

    "left"

    Related samples

    Details

    The positioning function takes the default window position as a parameter and allows modifying 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;
        }
    });

    The default window position is a top left corner of the viewport.

    See also
    Back to top
    If you have not checked yet, be sure to visit site of our main product Webix html5 library and page of javascript window product.