Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

How to designed View

Kamrul Hasan
4 years ago Mar 19, 2019 12:39pm
Olli Tietäväinen
4 years ago Mar 20, 2019 10:59am

Like this?

        Div container = new Div();
        H1 title = new H1("");
        Span label = new Span("");
        TextField textField = new TextField();
        Grid<Bean> grid = new Grid<>(); //...
        textField.addValueChangeListener( e -> {
		   title.setText(textField.getValue());
           label.setText(textField.getValue());
        });
        container.add(title, label, textField, grid);
        add(container);
Last updated on Mar, 20th 2019
Kamrul Hasan
4 years ago Mar 21, 2019 4:16pm
Olli Tietäväinen
4 years ago Mar 22, 2019 7:53am

Ok, so then you can create the divs in a for loop perhaps?