I have the FormItem with Label and TextInput controls.

Sample code

    <s:FormItem id="mobileLabel" label="Mobile Number">
        <s:TextInput id="mobileInput"/>
    </s:FormItem>
    <s:FormItem id="emailLabel" label="Email ID" required="true">
        <s:HGroup>
            <s:TextInput id="emailInput"/>
            <s:Label id="bindingLabel" text="@xyz.com"/>
        </s:HGroup> 
    </s:FormItem>

Output like this:

enter image description here

How to align the label text as bottom of the label? like this

enter image description here

有帮助吗?

解决方案

You can use the HGroup's proberty verticalAlign. Then your HGroup statement will look like:

<s:HGroup verticalAlign="middle">
  <s:TextInput id="emailInput"/>
  <s:Label id="bindingLabel" text="@xyz.com"/>
</s:HGroup> 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top