aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 42f61de0..b301ebcf 100644
--- a/README.md
+++ b/README.md
@@ -135,8 +135,8 @@ Application package will be saved as build/distributions/showcase.zip.
Root("root").add(FormPanel {
Model(it.string("username"), it.string("password"))
}.apply {
- add("username", Text(label = "Username"), required = true)
- add("password", Password(label = "Password"), required = true)
+ add(Model::username, Text(label = "Username"), required = true)
+ add(Model::password, Password(label = "Password"), required = true)
add(Button("OK").onClick {
val data: Data = this@apply.getData()
println("Username: ${data.username}")