align

sets the alignment of controls inside the control group

string align;

Values

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

    var form = new dhx.Form("form_container", {
        css: "dhx_widget--bordered",
        align: "center",  // sets the alignment for rows     rows: [
            {
                align: "start",  // sets the alignment for cols            css: "dhx_layout-cell--bordered",
                cols: [{
                    type: "checkbox",
                    label: "start",
                    name: "align",
                    gravity: false,
                    labelInline: true,
                    value: "start",
                    checked: true
                },
                {
                    type: "checkbox",
                    label: "center",
                    gravity: false,
                    name: "align",
                    labelInline: true,
                    value: "center"
                }]
            }
        ]
    });

    Related samples

    See also
    Change log

    added in v6.4

    Back to top