I have an Form with many TextField's (Vaadin), each one have very long caption.
Can i make TextField's caption multiline?
I don't think you can. Can you use TextArea instead?
Update: Define a custom style in your style.css:
.v-caption-multiline {
white-space: pre;
}
And then use in in your code to separate the lines by \n:
TextField t = new TextField("A very long caption\nA very long caption ");
t.addStyleName("multiline");
In Vaadin 7, the Panel caption excepts HTML.
Example, <sub>subscript</sub> and <br/> commands.
I don't know about version prior to 7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With