You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all! In one of the recent commits, valueText was removed as a parameter from f7Gauge with the comment
It does not make sense that the value can be accidentally different from the text displayed. valueText is then an internal parameter.
I think it would be better to try to default valueText to be equal to the value parameter but allow for customization - this gives it a natural default but also some easy flexibility for developers.
In the documentation for Gauge there are several examples of useful "value-text" customizations - namely, adding units, currency symbols, or showing the raw numbers used in the proportion.
In my case, I'd like to use valueText in my app because I want to use it as a graphic for "balance from a trade" and would show difference from 50% (i.e. perfectly equal).
Thus in the image below I'd use 40% as the "value parameter" but would want to display "10% in favor of team B" - and it would be nice to be able to show that with the 10% nested into the centre of the gauge.
The text was updated successfully, but these errors were encountered:
Hi all! In one of the recent commits, valueText was removed as a parameter from f7Gauge with the comment
I think it would be better to try to default valueText to be equal to the value parameter but allow for customization - this gives it a natural default but also some easy flexibility for developers.
In the documentation for Gauge there are several examples of useful "value-text" customizations - namely, adding units, currency symbols, or showing the raw numbers used in the proportion.
In my case, I'd like to use
valueText
in my app because I want to use it as a graphic for "balance from a trade" and would show difference from 50% (i.e. perfectly equal).Thus in the image below I'd use 40% as the "value parameter" but would want to display "10% in favor of team B" - and it would be nice to be able to show that with the 10% nested into the centre of the gauge.
The text was updated successfully, but these errors were encountered: