Hello!
I have a widget based on component f7-card.
If I make --f7-theme-color gray, for example:
component: f7-card
config:
class:
- no-padding
outline: true
style:
--f7-theme-color: gray
title: =props.title
slots:
default:
It changes color in widget from default to gray.
But if I use this:
component: f7-card
config:
class:
- no-padding
outline: true
style:
--f7-theme-color: '=(items[props.itemPower].state === "ON") ? green : gray'
title: =props.title
slots:
default:
The color stays default. No green and no gray colors.
I want that when my widget is ON (by itemPower), the used color is default, else is gray. How can I do this?