labelPosition

positions a label in relation to the control

string labelPosition;

Values

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

    {view:"richtext", 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:"text", label:"Some Text", labelAlign:"right", labelPosition:"top"}
    See also
    Back to top