aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-27 10:24:11 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-27 10:24:11 +0100
commit1dbc0ccd0f1a8b0b5afc99457af0a34a4d4b1b6b (patch)
treeb49ee11cc34764899823d82f1d4de3e96136977a /README.md
parent8876f49af237084a8c5e90133bfb817ef1880b11 (diff)
downloadkvision-1dbc0ccd0f1a8b0b5afc99457af0a34a4d4b1b6b.tar.gz
kvision-1dbc0ccd0f1a8b0b5afc99457af0a34a4d4b1b6b.tar.bz2
kvision-1dbc0ccd0f1a8b0b5afc99457af0a34a4d4b1b6b.zip
Updated README.
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 604eab07..42f61de0 100644
--- a/README.md
+++ b/README.md
@@ -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) {