From 9a1effcf29b27cc2e60b927c2d737b6cad0289b7 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 25 Feb 2018 01:04:24 +0100 Subject: Change enum classes names for better readability. --- src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/dropdown') diff --git a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt index 1370f25a..3ea85d4a 100644 --- a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt +++ b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt @@ -27,9 +27,9 @@ import pl.treksoft.kvision.core.Container import pl.treksoft.kvision.core.CssSize import pl.treksoft.kvision.core.StringBoolPair import pl.treksoft.kvision.core.StringPair -import pl.treksoft.kvision.html.BUTTONSTYLE +import pl.treksoft.kvision.html.ButtonStyle import pl.treksoft.kvision.html.Button -import pl.treksoft.kvision.html.LISTTYPE +import pl.treksoft.kvision.html.ListType import pl.treksoft.kvision.html.Link import pl.treksoft.kvision.html.ListTag import pl.treksoft.kvision.html.TAG @@ -59,7 +59,7 @@ enum class DD(val option: String) { */ open class DropDown( text: String, elements: List? = null, icon: String? = null, - style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, disabled: Boolean = false, + style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set = setOf() ) : SimplePanel(classes) { /** @@ -237,7 +237,7 @@ open class DropDown( */ fun Container.dropDown( text: String, elements: List? = null, icon: String? = null, - style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, disabled: Boolean = false, + style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set = setOf(), init: (DropDown.() -> Unit)? = null ): DropDown { val dropDown = DropDown(text, elements, icon, style, disabled, classes).apply { init?.invoke(this) } @@ -248,7 +248,7 @@ open class DropDown( } internal class DropDownButton( - id: String, text: String, icon: String? = null, style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, + id: String, text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set = setOf() ) : Button(text, icon, style, disabled, classes) { @@ -266,7 +266,7 @@ internal class DropDownButton( } internal class DropDownListTag(private val ariaId: String, classes: Set = setOf()) : ListTag( - LISTTYPE.UL, null, + ListType.UL, null, false, classes ) { -- cgit