Button Color Change on Click

How can I Change the button color on click?

@Lakshan You can use the storeValue function to store true when button is clicked


and then bind the value of the store in the Button Color property as below

{{appsmith.store.buttonClicked ? '#08c' : '#ff0'}}

Here’s a sample app that shows how it works. You can also fork the app - Appsmith