align

sets the alignment of content inside a cell

string align;

Values

  • "start" | "center" | "end" | "between" | "around" | "evenly"
  • Example

    var 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 samples

    See also
    Back to top