aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/dropdown
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-09-25 10:30:25 +0200
committerRobert Jaros <rjaros@finn.pl>2017-09-25 10:31:27 +0200
commit089447dd370314276531836e39afa2224eb8f6b8 (patch)
treece26e9cee19bcdae06fb7c39a1b1fab344dce95d /src/main/kotlin/pl/treksoft/kvision/dropdown
parent726a42ad5643840f84c289c9a6b56d6c3c9067b4 (diff)
downloadkvision-089447dd370314276531836e39afa2224eb8f6b8.tar.gz
kvision-089447dd370314276531836e39afa2224eb8f6b8.tar.bz2
kvision-089447dd370314276531836e39afa2224eb8f6b8.zip
Code style fixes
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/dropdown')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt
index 780cc4e3..b145f721 100644
--- a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt
@@ -1,7 +1,6 @@
package pl.treksoft.kvision.dropdown
import com.github.snabbdom.VNode
-import org.w3c.dom.CustomEvent
import pl.treksoft.kvision.core.Container
import pl.treksoft.kvision.core.ResString
import pl.treksoft.kvision.core.Widget
@@ -32,7 +31,7 @@ open class DropDown(text: String, elements: List<StringPair>? = null, icon: Stri
set(value) {
button.text = value
}
- var elements = elements
+ private var elements = elements
set(value) {
field = elements
setChildrenFromElements()
@@ -67,7 +66,7 @@ open class DropDown(text: String, elements: List<StringPair>? = null, icon: Stri
set(value) {
button.image = value
}
- var dropup = dropup
+ private var dropup = dropup
set(value) {
field = value
refresh()
@@ -197,7 +196,7 @@ open class DropDownListTag(private val ariaId: String, classes: Set<String> = se
}
@Suppress("UnsafeCastFromDynamic")
- internal fun showInternal() {
+ private fun showInternal() {
if (getElementJQueryD()?.`is`(":hidden")) {
getElementJQueryD()?.dropdown("toggle")
}