diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-02-27 10:24:11 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-02-27 10:24:11 +0100 |
commit | 1dbc0ccd0f1a8b0b5afc99457af0a34a4d4b1b6b (patch) | |
tree | b49ee11cc34764899823d82f1d4de3e96136977a | |
parent | 8876f49af237084a8c5e90133bfb817ef1880b11 (diff) | |
download | kvision-1dbc0ccd0f1a8b0b5afc99457af0a34a4d4b1b6b.tar.gz kvision-1dbc0ccd0f1a8b0b5afc99457af0a34a4d4b1b6b.tar.bz2 kvision-1dbc0ccd0f1a8b0b5afc99457af0a34a4d4b1b6b.zip |
Updated README.
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -78,7 +78,7 @@ Application package will be saved as build/distributions/showcase.zip. ##### Simple, explicit way val root = Root("root") - val panel = HPanel(spacing = 20, alignItems = FLEXALIGNITEMS.CENTER) + val panel = HPanel(spacing = 20, alignItems = FlexAlignItems.CENTER) val label = Label("Not yet clicked.") panel.add(label) var count = 0 @@ -93,7 +93,7 @@ Application package will be saved as build/distributions/showcase.zip. ##### Using Kotlin language features Root("root").add( - HPanel(spacing = 20, alignItems = FLEXALIGNITEMS.CENTER).apply { + HPanel(spacing = 20, alignItems = FlexAlignItems.CENTER).apply { val label = Label("Not yet clicked.").also { add(it) } var count = 0 add(Button("Click me").onClick { @@ -105,7 +105,7 @@ Application package will be saved as build/distributions/showcase.zip. ##### Using type safe DSL builders Root("root") { - hPanel(spacing = 20, alignItems = FLEXALIGNITEMS.CENTER) { + hPanel(spacing = 20, alignItems = FlexAlignItems.CENTER) { val label = label("Not yet clicked.") var count = 0 button("Click me") { @@ -156,7 +156,7 @@ Application package will be saved as build/distributions/showcase.zip. ) Root("root").add(DataContainer(model, { index -> Label(model[index].text) - }, child = HPanel(spacing = 10, wrap = FLEXWRAP.WRAP))) + }, child = HPanel(spacing = 10, wrap = FlexWrap.WRAP))) launch { // Kotlin coroutines while (true) { |