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: Intl.NumberFormat) : 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: Intl.NumberFormat) : 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?) : Div
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 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): NumberProgressBarTag
Content copied to clipboard