gravity

sets the view gravity

number gravity;

Example

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


Default value:

1

Related samples

Details

The parameter is used to set relative size proportions for the elements within the common parent container.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web ui framework and page of gage widget product.