ProgressView.id
property · packages/mixins-ui/src/progress.ts:47
readonly id: stringPrefixes the ids the progress draws, unique on the page.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/progress.ts:45
interface ProgressView<Message> {
readonly id: string
readonly label: string
readonly value: Option.Option<number> | ReadonlyArray<ProgressSection>
readonly min?: number | undefined
readonly max?: number | undefined
readonly buffer?: number | undefined
readonly segments?: number | undefined
readonly valueText?:
string | ((value: number, max: number) => string) | undefined
readonly showValue?: boolean | undefined
readonly style?: NamedStyle<typeof ProgressSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
}ProgressView.idproperty · packages/mixins-ui/src/progress.ts:47
readonly id: stringPrefixes the ids the progress draws, unique on the page.
ProgressView.labelproperty · packages/mixins-ui/src/progress.ts:49
readonly label: stringWhat is in progress, shown and naming the bar.
ProgressView.valueproperty · packages/mixins-ui/src/progress.ts:54
readonly value: Option.Option<number> | ReadonlyArray<ProgressSection>How far it is, from min to max: a number, none when that is not
known, or the parts of a stacked bar, whose sum it is.
ProgressView.minproperty · packages/mixins-ui/src/progress.ts:55
readonly min?: number | undefinedProgressView.maxproperty · packages/mixins-ui/src/progress.ts:56
readonly max?: number | undefinedProgressView.bufferproperty · packages/mixins-ui/src/progress.ts:58
readonly buffer?: number | undefinedHow far the work could go already, in the same range, drawn behind the fill.
ProgressView.segmentsproperty · packages/mixins-ui/src/progress.ts:60
readonly segments?: number | undefinedCuts a bar's track into this many equal steps.
ProgressView.valueTextproperty · packages/mixins-ui/src/progress.ts:62
readonly valueText?:
string | ((value: number, max: number) => string) | undefinedThe value as read aloud, when the number alone would not say it.
ProgressView.showValueproperty · packages/mixins-ui/src/progress.ts:64
readonly showValue?: boolean | undefinedShows the value: valueText when given, else the share as a percentage.
ProgressView.styleproperty · packages/mixins-ui/src/progress.ts:66
readonly style?: NamedStyle<typeof ProgressSlots> | undefinedA style of ProgressSlots, for the look.
ProgressView.mixinsproperty · packages/mixins-ui/src/progress.ts:68
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.