diff options
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/html/Image.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/html/Image.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/html/Image.kt b/src/main/kotlin/pl/treksoft/kvision/html/Image.kt index a03d673a..c9566531 100644 --- a/src/main/kotlin/pl/treksoft/kvision/html/Image.kt +++ b/src/main/kotlin/pl/treksoft/kvision/html/Image.kt @@ -14,27 +14,27 @@ enum class IMAGESHAPE(val className: String) { open class Image(src: ResString, alt: String? = null, responsive: Boolean = false, shape: IMAGESHAPE? = null, centered: Boolean = false, classes: Set<String> = setOf()) : Widget(classes) { - var src = src + private var src = src set(value) { field = value refresh() } - var alt = alt + private var alt = alt set(value) { field = value refresh() } - var responsive = responsive + private var responsive = responsive set(value) { field = value refresh() } - var shape = shape + private var shape = shape set(value) { field = value refresh() } - var centered = centered + private var centered = centered set(value) { field = value refresh() |