aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/progress
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-09-28 13:47:19 +0200
committerRobert Jaros <rjaros@finn.pl>2018-09-28 13:47:19 +0200
commit195ed86e21a5157e56b8e2cacb32602d93308e5b (patch)
tree2e5abd65bea0f53e2428aac54d9c07572be78e1e /src/main/kotlin/pl/treksoft/kvision/progress
parenta3bfbe7f072217288c14e3f2c734bb5918564c33 (diff)
downloadkvision-195ed86e21a5157e56b8e2cacb32602d93308e5b.tar.gz
kvision-195ed86e21a5157e56b8e2cacb32602d93308e5b.tar.bz2
kvision-195ed86e21a5157e56b8e2cacb32602d93308e5b.zip
Missing delegated properties of the ProgressBar component.
Fixes #4
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/progress')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/progress/ProgressBar.kt24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/progress/ProgressBar.kt b/src/main/kotlin/pl/treksoft/kvision/progress/ProgressBar.kt
index 17010b5c..4d0f4b93 100644
--- a/src/main/kotlin/pl/treksoft/kvision/progress/ProgressBar.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/progress/ProgressBar.kt
@@ -97,6 +97,30 @@ open class ProgressBar(
set(value) {
indicator.animated = value
}
+ /**
+ * Text content of the progress bar.
+ */
+ var content
+ get() = indicator.content
+ set(value) {
+ indicator.content = value
+ }
+ /**
+ * Determines if [content] can contain HTML code.
+ */
+ var rich
+ get() = indicator.rich
+ set(value) {
+ indicator.rich = value
+ }
+ /**
+ * Text align of the progress bar.
+ */
+ var align
+ get() = indicator.align
+ set(value) {
+ indicator.align = value
+ }
internal val indicator = ProgressIndicator(progress, min, max, style, striped, animated, content, rich, align)