diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-10-19 13:48:03 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-10-19 13:48:03 +0200 |
commit | d17f27058f41f2dddd9fd5e88149ed55f9f7bf0c (patch) | |
tree | b475544b8af881fcb5f09a6fb12c82155b060976 /src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt | |
parent | 94d1930aaf160d7271aabe97bf167a911391210b (diff) | |
download | kvision-d17f27058f41f2dddd9fd5e88149ed55f9f7bf0c.tar.gz kvision-d17f27058f41f2dddd9fd5e88149ed55f9f7bf0c.tar.bz2 kvision-d17f27058f41f2dddd9fd5e88149ed55f9f7bf0c.zip |
Form control: Radio
Unit tests
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt b/src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt index 2d7b3276..13551f67 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt @@ -70,7 +70,7 @@ open class CheckBox(value: Boolean = false, name: String? = null, style: CHECKBO } private val idc = "kv_form_checkbox_" + counter - val input: CheckBoxInput = CheckBoxInput(value, name, disabled, idc, setOf("styled")) + val input: CheckBoxInput = CheckBoxInput(CHECKINPUTTYPE.CHECKBOX, value, name, disabled, idc, null, setOf("styled")) val flabel: FieldLabel = FieldLabel(idc, label, rich) init { @@ -85,7 +85,7 @@ open class CheckBox(value: Boolean = false, name: String? = null, style: CHECKBO @Suppress("UNCHECKED_CAST") override fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget { - input.setEventListener<T>(block) + input.setEventListener(block) return this } |