ProgressView.id
property · packages/mixins-ui/src/progress.ts:46
readonly id: stringPrefixes the ids the progress draws, unique on the page.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/progress.ts:44
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:46
readonly id: stringPrefixes the ids the progress draws, unique on the page.
ProgressView.labelproperty · packages/mixins-ui/src/progress.ts:48
readonly label: stringWhat is in progress, shown and naming the bar.
ProgressView.valueproperty · packages/mixins-ui/src/progress.ts:53
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:54
readonly min?: number | undefinedProgressView.maxproperty · packages/mixins-ui/src/progress.ts:55
readonly max?: number | undefinedProgressView.bufferproperty · packages/mixins-ui/src/progress.ts:57
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:59
readonly segments?: number | undefinedCuts a bar's track into this many equal steps.
ProgressView.valueTextproperty · packages/mixins-ui/src/progress.ts:61
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:63
readonly showValue?: boolean | undefinedShows the value: valueText when given, else the share as a percentage.
ProgressView.styleproperty · packages/mixins-ui/src/progress.ts:65
readonly style?: NamedStyle<typeof ProgressSlots> | undefinedA style of ProgressSlots, for the look.
ProgressView.mixinsproperty · packages/mixins-ui/src/progress.ts:67
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.