1
votes

I've made layout with simple gwt, but now I want to make label and text field using gxt 3.0.1. Gxt provides FieldLabel field. Label on the left than TextField on the right. Can I make it to be, text field than label on right side of the text field.

Current code is `

<g:HorizontalPanel ui:field="hpOne" width="1">    
  <g:Cell verticalAlignment="ALIGN_MIDDLE">         
    <form:FieldLabel text="{message.lblTestGroupName}" ui:field="lblTestGroupName">    
      <form:widget>      
        <form:TextField ui:field="tbTestGroupName"/>      
      </form:widget>      
    </form:FieldLabel>    
  </g:Cell>      
 </g:HorizontalPanel>

  `
1
Apparently this behaviour is not available in GXT. That's a pity because it is implemented in ExtJS.rixo

1 Answers

0
votes

I am not sure if we are on the same plate, but please try this:

<g:HorizontalPanel ui:field="hpOne" width="1">
     <form:TextField ui:field="tbTestGroupName" />   
     <form:FieldLabel text="{message.lblTestGroupName}" ui:field="lblTestGroupName" />
</g:HorizontalPanel>

Lemme know if you are looking for this.