diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-10-21 23:47:03 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-10-21 23:47:03 +0200 |
commit | dec46533acbfa4751337149dcf7b1a67f9bb42fd (patch) | |
tree | 40e63e8da14ba53e06c9a12410e8a7bf613ae2ca | |
parent | 9d7e3393425e8484b9c862654e1d547b69aa765b (diff) | |
download | kvision-dec46533acbfa4751337149dcf7b1a67f9bb42fd.tar.gz kvision-dec46533acbfa4751337149dcf7b1a67f9bb42fd.tar.bz2 kvision-dec46533acbfa4751337149dcf7b1a67f9bb42fd.zip |
Updated README.
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -144,7 +144,7 @@ Application package will be saved as build/distributions/showcase.zip. add(Model::username, Text(label = "Username"), required = true) add(Model::password, Password(label = "Password"), required = true) add(Button("OK").onClick { - val data: Data = this@FormPanel.getData() + val data: Model = this@FormPanel.getData() println("Username: ${data.username}") println("Password: ${data.password}") }) @@ -164,7 +164,7 @@ Application package will be saved as build/distributions/showcase.zip. Label(data.text) }, child = HPanel(spacing = 10, wrap = FlexWrap.WRAP))) - launch { // Kotlin coroutines + GlobalScope.launch { // Kotlin coroutines while (true) { delay(1000) model.reverse() |