Vaadin FormField multi-line header

I have a form with many TextField (Vaadin), each of which has a very long signature.

Can I make TextField multiline inscription?

+3
source share
3 answers

I do not think you can. Can you use TextArea instead?

Update: Define your own style in style.css:

.v-caption-multiline {
    white-space: pre;
}

And then use in your code to split the lines by \ n:

TextField t = new TextField("A very long caption\nA very long caption ");
t.addStyleName("multiline");
+3
source

In Vaadin 7, the title bar excludes HTML.

Example, <sub> index </sub> and <br /> commands.

I do not know about version up to 7.

+1
source

- GridLayout .

0

All Articles