Skip to content

resize

adjusts the view to a new size

function resize(): void
dgrid = webix.grid({
// other config
});
dgrid.define("width", 700);
dgrid.resize();

also check the next samples:

You may need to use this method if you want to change the width or height of the component.

dgrid.config.width = 200;
dgrid.config.height = 200;
dgrid.resize();

If a component is placed into some layout - you need not to call resize for the parent layout, it will adjust automatically.

If you set sizes for multiple components,it makes sense to set sizes for all of them at first and only then call resize().

grid1.config.width = 200;
grid1.config.height = 200;
grid2.config.width = 600;
grid2.config.height = 400;
grid1.resize();
grid2.resize();

Articles

API