I apologize in advance that this question isn’t associated with a notebook. While I’ve hacked around drawing from myriad internet examples, I still haven’t gotten to a happy place…
I’d like to create a button input for which both text and color changes on click, and clicks cycle through a few options. I’ve gotten this sort of thing working well for binary values, but haven’t managed to get color and text changes to line up for multiple values. For example, one button would cycle through three options:
select - grey
yes - red
no - green
I see that the ‘test passed’ / ‘test failed’ indicators in @mootari/mutable-forms adjust colors when values match parameters using a
style.color = match ?
Before I starting hacking around with this notebook, I was hoping someone would tell me whether or not it’d be a relatively useful exercise.
Thanks in advance!