Как изменить цвет значения в justGage
Я хотел бы знать, есть ли способ изменить цвет и, возможно, оформление текста в параметре Value justGage после создания датчика.
В конечном счете, я хотел бы иметь возможность изменить цвет текста на синий с подчеркиванием, чтобы он напоминал ссылку.
Спасибо.
1 ответ
При просмотре сайта есть примеры элементов, которые вы можете редактировать, чтобы настроить свой стиль.
Перейдите к "Демо> Настроить стиль", и вы увидите этот список:
Вот список всех параметров, с которыми вы можете настроить свой датчик:
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)
Теперь, можете ли вы отрегулировать эти значения ПОСЛЕ того, как датчик сделан, я не знаю. У меня такое чувство, что ты не можешь этого сделать.