From a2be91f3b09a79759f4d9214e5df700a2939fa59 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 7 Mar 2018 14:22:27 +0100 Subject: Updated README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') 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}") -- cgit