positions a label in relation to the control
{view:"text", label:"Some Text", labelPosition:"top"}
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"}