I have a bunch of Retool UI components that use the built-in icon feature. E.g.,
(ignore the {{ephemeral_lcliz_cache.value[...}}
, that's just a localization hack). The important thing here is the icon. It's defined here in the usual Retool way:
But! I have these all over the UI. Unfortunately Retool does not allow me to define a row action in one place and then apply it to many different tables... That's why these definitions are all over the place. So, I decided to "tidy-up" the code a little bit; to make it easier to change an icon at some future date. I defined this:
And this works. Where I must specify an icon I can do this:
And the correct icon will appear in the UI at runtime. Unfortunately in the IDE the icon is NOT displayed. A box is:
I did the top two, and then stopped, because I am thinking "...not having a nice preview inside the IDE will be a pain."
Especially since the string part of the control is obfuscated by my gross localization hack.
Surely this is a bug that will be fixed soon?