Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] How to change button color on its click

$
0
0

Eduardo Jauch wrote:

Shubham Agarwal wrote:

Eduardo Jauch wrote:

Please, elaborate your question. For example, show the IF condition you are putting in the class extended attribute. Which variable are you using to tell if the button is clicked or not, etc.

I don't know which condition to put.I have not entered any condition.It's just a name().What I have done is that I have placed a button and just designed two css classes for two states of button i.e. active and inactive.



You need a variable to hold which button is clicked and when you click a button, in the action you call, you assign a value to this variable to tell this button clicked it. In the class extended property of each button you just check if the button clicked was this one and if so, apply one class or another, if not.

The syntax is in my answer above.

Cheers.


There is only 1 button and on clicking that I want to change its color.


Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>