diff options
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/html')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/html/Button.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/html/Button.kt b/src/main/kotlin/pl/treksoft/kvision/html/Button.kt index f0cb91f7..d14ce66e 100644 --- a/src/main/kotlin/pl/treksoft/kvision/html/Button.kt +++ b/src/main/kotlin/pl/treksoft/kvision/html/Button.kt @@ -23,8 +23,7 @@ enum class BUTTONSIZE(val className: String) { } open class Button(text: String, icon: String? = null, style: BUTTONSTYLE = BUTTONSTYLE.DEFAULT, - disabled: Boolean = false, image: ResString? = null, - classes: Set<String> = setOf()) : Widget(classes) { + disabled: Boolean = false, classes: Set<String> = setOf()) : Widget(classes) { var text = text set(value) { field = value @@ -45,12 +44,11 @@ open class Button(text: String, icon: String? = null, style: BUTTONSTYLE = BUTTO field = value refresh() } - var image = image + var image: ResString? = null set(value) { field = value refresh() } - var size: BUTTONSIZE? = null set(value) { field = value |