labelPosition

positions a label in relation to the control

string labelPosition;

Values

  • "top"
    places a label above the control
  • Example

    {view:"checkbox", label:"Some Text", labelPosition:"top"}


    Default value:

    "left"

    Related samples

    Details

    By default, the label is aligned to the left, so the top label will also be placed to the left.

    To align the top label to the right, set the labelAlign property:

    {view: "checkbox", label:"Some Text", labelAlign:"right", labelPosition:"top"}

    To add a label to the right of a checkbox, use the labelRight property.

    See also
    Back to top