width
Optional. Sets the width of a cell
width?: number | string;
Example
const layout = new dhx.Layout("layout_container", {
cols: [
{ header: "Cell header", width: "300px" }
]
});
Related sample: Layout. Sizes
Autowidth for cells
Starting from v7.0, the width of a cell can be automatically adjusted to the width of its content. For that, set the width configuration option to "content":
const layout = new dhx.Layout("layout_container", {
cols: [
{
header: "Cell header",
width: "content"
}
]
});