Skip to main content

width

sets the width of a cell

width?: number | string;

Example

var layout = new dhx.Layout("layout_container", {    cols: [      { header: "Cell header", width: "300px" }    ]});

Related sample: Layout. Sizes

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":

var layout = new dhx.Layout("layout_container", {    cols: [      { header: "Cell header", width: "content" } /*!*/    ]});