align
Optional. Sets the alignment of content inside a cell
align?: "start" | "center" | "end" | "between" | "around" | "evenly";
Default value: "start"
Example
const layout = dhx.Layout("layout_container", {
rows: [
{
align: "center",
cols: [
{
css: "dhx_layout-cell--border_left dhx_layout-cell--border_right",
gravity: false,
html: "Horizontal Align"
},
{
css: "dhx_layout-cell--border_left dhx_layout-cell--border_right",
gravity: false,
html: "Horizontal Align"
},
{
css: "dhx_layout-cell--border_left dhx_layout-cell--border_right",
gravity: false,
html: "Horizontal Align"
}
]
}
]
});
Related sample: Layout. Align