Browse Source

Fixed event name to match example code

Change-Id: Id9333bae30c7bf5c24dcd0aca1cbee671c28910e
tags/8.0.0.alpha1
Marcus Hellberg 7 years ago
parent
commit
6214afcd5f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      documentation/datamodel/datamodel-fields.asciidoc

+ 1
- 1
documentation/datamodel/datamodel-fields.asciidoc View File

@@ -35,7 +35,7 @@ By listening to the event, we can find out the new value of the field and whethe
[source,java]
----
TextField nameField = new TextField("Enter your name");
nameField.addValueChangeListener(clickEvent -> {
nameField.addValueChangeListener(event -> {
String origin = event.isUserOriginated()
? "by the user"
: "from code";

Loading…
Cancel
Save