flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kessler CTR Mark J <mark.kessler....@usmc.mil>
Subject RE: form layout
Date Thu, 08 Sep 2016 10:13:42 GMT
As a side option you could just throw out the form and use regular layout.


<s:HGroup>
    <s:Label text="Password" />
    <s:TextInput id="password1" width="180" height="25" displayAsPassword="true" prompt="new
password"
                 text="{editableUser.pw1}" change="{editableUser.pw1 = password1.text}"/>
</s:HGroup>

<s:HGroup>
    <s:Label text="Reset" />
    <s:TextInput id="password2"  width="180" height="25" change="checkUserId()" prompt="repeat
password"
                     displayAsPassword="true"/>
</s:HGroup>



-Mark

-----Original Message-----
From: scott matheson [mailto:scott@matheson.it]
Sent: Wednesday, September 07, 2016 4:34 PM
To: <users@flex.apache.org>
Subject: [Non-DoD Source] form layout

Hi
    i am developing a web app,i want the labels for the filed to be on 2 lines ie

Password   XXXXXXXXX
Reset      XXXXXXXXX



with the   formitem i can get the fields close together,. but how do i get the labels onto
2 lines


this code work, however the text is on 1 line


<s:FormItem label="Password reset"  >

    <s:TextInput id="password1" width="180" height="25" displayAsPassword="true"
                 prompt="new password"
                 text="{editableUser.pw1}" change="{editableUser.pw1 = password1.text}"/>

    <s:HGroup>

        <s:TextInput id="password2"  width="180" height="25" change="checkUserId()"
                     prompt="repeat password"
                     displayAsPassword="true"/>


    </s:HGroup>


</s:FormItem>


Mime
View raw message