autowidth
adjusts the width of DataGrid to its content
let autowidth: boolean
Example
Section titled “Example”webix.grid({ autowidth:true, ...});
also check the next samples:
Details
Section titled “Details”If DataGrid has 5 columns (each 100px wide), the resulting width will be 500px plus borders.
To adjust a component to the size of a parent container omit this property.
To stretch the DataGrid columns within the container, you need to set fillspace to at least one of its columns.
columns:[ { id:"title", header:"Title", fillspace:true }, // make this column twice as wide { id:"year", header:"Release", fillspace:2 }]
See also
Section titled “See also”Articles
API