Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Route("hello-world")
- public class MainView extends VerticalLayout {
- public MainView() {
- TextField textField = new TextField("Enter your name");
- Button button = new Button("Click me", event ->
- add(new Label("Hello, " + textField.getValue())));
- add(textField, button);
- }
- }
Add Comment
Please, Sign In to add comment