positions a label in relation to the control

string labelPosition;


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

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

    Default value:


    Related samples


    By default label features left alignment, so the top label will be placed to the left upper corner of the control.

    The top right alignment is achieved by applying both properties:

    {view:"text", label:"Some Text", labelAlign:"right", labelPosition:"top"}
    See also
    Back to top