1

我想知道是否有办法在创建仪表后更改 justGage 的 Value 参数中文本的颜色和可能的装饰。

最终,我希望能够将文本的颜色更改为带有下划线的蓝色,以便类似于链接。

谢谢你。

4

1 回答 1

7

在查看该站点时,您可以编辑一些元素示例以自定义您的样式。

转到“Demos > Customize Style”,你会看到这个列表:

以下是您可以设置仪表的所有参数的列表:

id : string container element id
title : string gauge title text
titleFontColor : string color title text
value : int value gauge is showing
valueFontColor : string color of value text
min : int minimum value
max : int maximum value
showMinMax : bool hide or display min and max values
gaugeWidthScale : float width of the gauge element
gaugeColor : string background color of gauge element
label : string text to show below value
showInnerShadow : bool whether to display inner shadow
shadowOpacity : float shadow opacity, values 0 ~ 1
shadowSize : int inner shadow size
shadowVerticalOffset : int how much is shadow offset from top
levelColors : array of strings colors of indicator, from lower to upper, in hex format
levelColorsGradient : bool use gradual or sector-based color change
labelFontColor : string color of label showing label under value
startAnimationTime : int length of initial load animation
startAnimationType : string type of initial animation (linear, >, <, <>, bounce)
refreshAnimationTime : int length of refresh animation
refreshAnimationType : string type of refresh animation (linear, >, <, <>, bounce)

现在,您是否可以在仪表制成后调整这些值,我不知道。我有一种感觉,你不能那样做。

于 2014-01-09T21:28:50.580 回答