gravity

sets the view gravity (1 by default)

number gravity;

Example

//equal sizes
webix.ui({
    view:"flexlayout",
    cols:[
        { gravity:1, template:"left" },
        { gravity:1, template:"right" }
    ]
});
 
//the left area two times wider than the right one
webix.ui({
    view:"flexlayout",
    cols:[
        { gravity:2, template:"left" },
        { gravity:1, template:"right" }
    ]
});

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.