Access interpolated variable possible? #1182
Unanswered
MartyMcFlyInTheSky
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I want to access a variable dynamically, meaning the variable name is given by the arguments to a widget.
In this excerpt the reveal_X variable is dynamically accessed according to the
name
parameter to the widget. Of course the variable needs to be instantiated first, so what I have islying around in global scope. However, it seems that I can not interpolate
get_env(reveal_${name})
, also get_env generally doesn't seem to work for me (how to use it?). But that begs the question if I'm approaching this the wrong way. The idea I had was to make a generic revealer that has an icon and will reveal some text if the icon is hovered ovedr, then infuse this revealer with custom variables. Is this possible in some way?Beta Was this translation helpful? Give feedback.
All reactions