ich verstehe nicht ganz wie ich ein Icon einbinde das von einem Item zur Verfügung gestellt wir.
Das Weather Company Forecast Thing liefert ein Image :
Weather_Company_Forecast_ForecastDay0Day_IconImage
Oder muss ich das über ein Image erledigen.
LG und Danke
Code: Alles auswählen
- component: oh-icon
config:
icon: "=(items[(props.itemPrefix2) + 'ForecastDay0Day_IconImage'])"
style:
text-shadow: var(--weather-text-shadow-strong)
font-size: var(--weather-font-size-xxlarge)
padding-top: 5px
padding-bottom: 5px