Skip to main content

height

Optional. Sets the height of a cell

height?: number | string;

Example

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

Related sample: Layout. Sizes

Autoheight for cells‚Äč

Starting from v7.0, the height of a cell can be automatically adjusted to the height of its content. For that, set the height configuration option to "content":

const layout = new dhx.Layout("layout_container", {
cols: [
{
header: "Cell header",
height: "content"
}
]
});