From dec46533acbfa4751337149dcf7b1a67f9bb42fd Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 21 Oct 2018 23:47:03 +0200 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 fa54737a..3ca97c56 100644 --- a/README.md +++ b/README.md @@ -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() -- cgit