How to set a tab icon?

Hi @Drew_Gallagher!
It's not possible to set state in Retool without an associated set* API on the component, but you can define the icon field declaratively by configuring the Icon field using a template string.

This screenshot assumes that you've set up some sort of variable with boolean state in your code, which you can control via scripts or event handlers (someCondition.setValue(false))

2 Likes