Closed aapoalas closed 1 year ago
This seems more sensible no?
{
direction : 'vertical' ,
reverse : true
}
When 2.0 launches this will be possible.
ProgressBar
in version 2.0 has two separate properties: orientation
and direction
.
orientation
specifies whether progressbar should be horizontal or vertical and direction
specifies the direction
of progress flow – "normal"
or "reversed"
What this feature is meaning to achieve ProgressBarComponent currently supports horizontal and vertical modes. It would be nice if it could also support horizontal-reverse and vertical-reverse modes. Alternate names would be
rtl
,ltr
,ttb
,btt
.Solution Invert min-max-value to draw scale calculations.
Describe alternatives you've considered I could manually invert my own inputs to the component, but due to how I'm streaming in values for these it would be a bit of a pain to do.