I would like to add a text to the item trendItem: =(props.windItem) in following widget. The trendItem shows simply an number (for example ‘5’) and I would like to add a string “km/h” in order it looks on the widget like “5 km/h”.
- component: oh-label-card
config:
action: analyzer
actionAnalyzerCoordSystem: time
actionAnalyzerItems: =[props.windItem]
icon: f7:wind
iconColor: '=(items[props.windItem].state < Number(props.windMax) ? "red" : "green")'
iconSize: 31px
item: =(props.windItem)
left: 0%
noShadow: true
position: absolute
top: 0
trendGradient:
- "#f94144"
- "#42b983"
- "#3a86ff"
trendItem: =(props.windItem)
vertical: false
width: 100%
z-index: 1
How can I do that?