aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-07 14:22:27 +0100
committerRobert Jaros <rjaros@finn.pl>2018-03-07 14:22:27 +0100
commita2be91f3b09a79759f4d9214e5df700a2939fa59 (patch)
tree329660683fe9a939e9053b2a90a156eee1af3077
parentfcbe3b99e9af0183520c9e25ededa9ab8ff7cc34 (diff)
downloadkvision-a2be91f3b09a79759f4d9214e5df700a2939fa59.tar.gz
kvision-a2be91f3b09a79759f4d9214e5df700a2939fa59.tar.bz2
kvision-a2be91f3b09a79759f4d9214e5df700a2939fa59.zip
Updated README
-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}")