Package io. kvision. progress
Bootstrap progress bar component.
Types
Content Generator
Link copied to clipboard
Generic interface for progress content generator.
Format Fraction Content Generator
Link copied to clipboard
class FormatFractionContentGenerator(numberFormat: <ERROR CLASS>) : ContentGenerator<Number>
Content copied to clipboard
Uses a Intl.NumberFormat to format the fraction of a value within bounds. E.g. if value = 2, bounds=1,10, then the fraction is 0.2 which is formatted using a given numberFormat.
Format Number Value Content Generator
Link copied to clipboard
class FormatNumberValueContentGenerator(numberFormat: <ERROR CLASS>) : ContentGenerator<Number>
Content copied to clipboard
Uses a Intl.NumberFormat to format a value.
Number Progress Bar Tag
Link copied to clipboard
class NumberProgressBarTag(progress: Progress<out Number>, initialValue: Number, contentGenerator: ContentGenerator<Number>, bgColor: BsBgColor?, className: String?, init: NumberProgressBarTag.() -> Unit?) : ProgressBarTag<Number>
Content copied to clipboard
An implementation of the @see ProgressBarTag, which works with plain old numbers
Progress Bar Tag
Link copied to clipboard
abstract class ProgressBarTag<T>(className: String?, bgColor: BsBgColor?)
Content copied to clipboard
A base class for the progress bar tag. This class only exposes utility methods in order to set the typical attributes used by the bootstrap progress bar in a type-safe manner.
Functions
progress
Link copied to clipboard
fun <T> <ERROR CLASS>.progress(bounds: Bounds<T>, className: String? = null, init: Progress<T>.() -> Unit? = null): Progress<T>
Content copied to clipboard
fun <ERROR CLASS>.progress(min: Number = 0, max: Number = 100, className: String? = null, init: Progress<Number>.() -> Unit? = null): Progress<Number>
Content copied to clipboard
DSL builder extension function.
progress Numeric
Link copied to clipboard
fun Progress<out Number>.progressNumeric(initialValue: Number = 0, contentGenerator: ContentGenerator<Number> = ContentGenerator { _, _, _ -> }, bgColor: BsBgColor? = null, className: String? = null, init: NumberProgressBarTag.() -> Unit? = null): <ERROR CLASS>
Content copied to clipboard