Hi everyone,
I was trying to add items to a ListView using a simple colored square as the icon.
Since this is Opus, I figured out you can do it like this:
row.icon = '<%bg:100^100^100^' + obj.hex + '>';
where obj.hex is a color hex code. And it does work. The only issue is that the "colored icon" only shows up after you select the item at least once; until then, the default icon is used.
Is there a better approach for this?
Let me know if you need a more visual example. I know this is pretty niche and a bit hard to explain.
Thanks.