Inline textField

Hello Team,

I use a textField inside of a vbox:

image

 <vbox spacing="true">
     <textField id="agentField" property="agent" caption="Agent"/>
 </vbox>

Is there any possibility to display “Agent” and the box inline?

Best Regards,
-n

Hello @neutrino!

You can wrap TextField component in CssLayout:

<cssLayout>
    <textField caption="TextField"/>
</cssLayout>

image

Regards,
Gleb

Thank you!
It works but the TextField is sticked to the box.
Meantime I solved with the stylename:

.v-caption-inline-label{

  display: inline-block;
  padding-right:10px;
}
1 Like