
Announcements
Hello Power Users,
I have 5 buttons that has each operation themselves like filtering a gallery. Is there a way that I wanted to show what button is clicked/Selected? Also, if button 1 is selected all others will be unclicked and will be in one color. If button 2 is selected all others are unclicked except button 2 in same color.
Any help/suggestions please?
Thanks in advance!
Hi @KrishR ,
Would you like to change color of the last clicked button and other buttons to be some other color? If so, you can update one context variable to the Text of the button that has been clicked, then in Fill property of the buttons, set a color for when button's text is equal to the variable, otherwise fill with other colors.
OnSelect of all the buttons:
UpdateContext({varCB: Self.Text})
Fill of all the buttons:
If(Self.Text = varCB, Yellow, Blue)
Best regards,