How to change button editabel and change color based on condition

0
Hello guys , do you have any idea how to make bottun unaditable and changed color.
asked
2 answers
1

Hi Abdul,

 

I think you should be able to select a disabled button using the following:

button[disabled=disabled], button:disabled {
    // your css rules
}

For more detail, refer to the below link,

https://stackoverflow.com/questions/14750078/style-disabled-button-with-css

 

Thanks!

answered
0

Hi Abdul,

 

You can add conditional based css class in appearance tab of your button widget.

 

CSS class needs to be defined in your scss file whereas CSS class name can be added in condition.

 

Here in my screenshot, I have used disabled class name.

 

In my case, Just for example, if my vehicle ID is 1, My button will be disabled otherwise it will be active and clickable.

 

answered