Is there a way I can change a button color when the user clicks it? I want the button to start white then change to red when the user clicks it.
Solved! Go to Solution.
Views
Replies
Total Likes
Add this code to the click event:
this.border.fill.color.value
= "255,0,0"
Paul
Views
Replies
Total Likes
Add this code to the click event:
this.border.fill.color.value
= "255,0,0"
Paul
Views
Replies
Total Likes
Hi Paul,
Thank you for this information. It works great! Is there any way that I can set it to toggle on and off? So it can go red, then neutral, then red... or even better, is there a way to make it toggle between several colors (example: neutral, red, green, yellow)?
Thanks a bunch!
Views
Replies
Total Likes
Try this:
if
(this.border.fill.color.value == "255,0,0"){this.border.fill.color.value
= "255,255,255"
}
else {
this.border.fill.color.value
= "255,0,0"
}
Paul
Yes!!! Thank you!
Views
Replies
Total Likes