From 195ed86e21a5157e56b8e2cacb32602d93308e5b Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 28 Sep 2018 13:47:19 +0200 Subject: Missing delegated properties of the ProgressBar component. Fixes #4 --- .../pl/treksoft/kvision/progress/ProgressBar.kt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/main/kotlin/pl/treksoft') 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) -- cgit