Search code examples
gwtextjsgxt

Can I use Sencha FieldLabel tag to put label and text field in reverse order?


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>

  `

Solution

  • 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.