You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I make use of template cards all the time and i'm wondering if it would be possible to declare variables only once for the whole card.
Most of my cards' color, icon, primary, secondary etc. is checking similar variables and would be more efficient to just declare those variables once and use them troughout the template.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I make use of template cards all the time and i'm wondering if it would be possible to declare variables only once for the whole card.
Most of my cards' color, icon, primary, secondary etc. is checking similar variables and would be more efficient to just declare those variables once and use them troughout the template.
Ex: i have this card:
and maybe i could do this instead:
I hope I'm not the one who did not find solution for this
Beta Was this translation helpful? Give feedback.
All reactions