aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/data
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-01-17 19:29:30 +0100
committerRobert Jaros <rjaros@finn.pl>2018-01-17 19:29:30 +0100
commit31c9d3c4121107974a8419752aa7face5c96f821 (patch)
tree77aaac10c5a120b028c14f53ab74eb5491f4a443 /src/main/kotlin/pl/treksoft/kvision/data
parent646e82e383850447fd4d10f71ecc0aeab11623e0 (diff)
downloadkvision-31c9d3c4121107974a8419752aa7face5c96f821.tar.gz
kvision-31c9d3c4121107974a8419752aa7face5c96f821.tar.bz2
kvision-31c9d3c4121107974a8419752aa7face5c96f821.zip
Code formatting (Kotlin Style Guide)
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/data')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/data/DataContainer.kt12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/data/DataContainer.kt b/src/main/kotlin/pl/treksoft/kvision/data/DataContainer.kt
index 019ee414..4dbceaea 100644
--- a/src/main/kotlin/pl/treksoft/kvision/data/DataContainer.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/data/DataContainer.kt
@@ -2,15 +2,17 @@ package pl.treksoft.kvision.data
import com.github.snabbdom.VNode
import com.lightningkite.kotlin.observable.list.ObservableList
-import pl.treksoft.kvision.core.Container
import pl.treksoft.kvision.core.Component
+import pl.treksoft.kvision.core.Container
import pl.treksoft.kvision.core.Widget
import pl.treksoft.kvision.panel.VPanel
-class DataContainer<M : DataComponent, C : Widget>(val model: ObservableList<M>,
- private val binding: (M, Int) -> C,
- private val child: Container = VPanel()) :
- Widget(setOf()), Container, DataUpdatable {
+class DataContainer<M : DataComponent, C : Widget>(
+ val model: ObservableList<M>,
+ private val binding: (M, Int) -> C,
+ private val child: Container = VPanel()
+) :
+ Widget(setOf()), Container, DataUpdatable {
override var visible
get() = child.visible