I have a UIButton with the following css
button {
size: 50 100;
color: #FF0000;
}
But I want to disable the button based on a style like maybe:
button {
size: 50 100;
color: #FF0000;
enabled: true;
}
Does anyone know how to accomplish or add an extension method to enable this?
I don't think there are
enabled
ordisabled
pseudo-classes available forUIButton
. What you could potentially do instead is detect the button state and assign astyleClass
dynamically like this:...and then your CSS would be:
I hope that helps. Good luck.