From 2b0f687b17bdf0144262a20556446cfbf50a4f34 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 4 Nov 2017 12:56:18 +0100 Subject: Make some classes non-final --- src/main/kotlin/pl/treksoft/kvision/form/SelectOptGroup.kt | 2 +- src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt | 2 +- src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/pl/treksoft/kvision/form/SelectOptGroup.kt b/src/main/kotlin/pl/treksoft/kvision/form/SelectOptGroup.kt index 41eb951e..513077ef 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/SelectOptGroup.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/SelectOptGroup.kt @@ -4,7 +4,7 @@ import com.github.snabbdom.VNode import pl.treksoft.kvision.panel.SimplePanel import pl.treksoft.kvision.snabbdom.StringPair -class SelectOptGroup(label: String, options: List? = null, maxOptions: Int? = null, +open class SelectOptGroup(label: String, options: List? = null, maxOptions: Int? = null, disabled: Boolean = false, classes: Set = setOf()) : SimplePanel(classes) { var label: String = label diff --git a/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt index 9f27bd16..c30d760e 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt @@ -3,7 +3,7 @@ package pl.treksoft.kvision.form import com.github.snabbdom.VNode import pl.treksoft.kvision.snabbdom.StringPair -class TextAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set = setOf()) : +open class TextAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set = setOf()) : AbstractTextInput(value, classes) { var cols: Int? = cols diff --git a/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt index 7b3510ac..c900fcff 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt @@ -8,7 +8,7 @@ enum class TEXTINPUTTYPE(val type: String) { PASSWORD("password") } -class TextInput(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, classes: Set = setOf()) : +open class TextInput(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, classes: Set = setOf()) : AbstractTextInput(value, classes) { var type: TEXTINPUTTYPE = type -- cgit