Disabling Widget from client site

Hi,

sometimes a value change doesn’t make sense in the current state of the client. So it would be really great if widget could be disabled temporarliy by the client.

For a better understanding, here is an example.

  • I have motor driver with two input modes, PWM and digital (I2C).
  • I have a Button to switch between those two modes.
  • For PWM Mode i have a slider to set the value,
  • for digital i have a dropdown to select certain effects

I’m using a DRV2605 Haptic Controller from Adafriut btw.

Now i would like to disable either the slider or the dropdown, to show the user that they have no effect currently.

Cu
David