Set the disabled property.
Disabled widgets have a "disabled" pseudo-class until disabled is set to false.
false
an Widget
value to set