A button is in a disabled state if you do not add the on_press() function when building it. I've used this quite a lot in a couple of projects I'm working on. However, I ran into a situation where I needed to do something similar with a toggler and cannot put the toggler in a disabled state. When creating the toggler the message (for the Fn Message parameter) is required, and so there is no way to put it in a disabled state if it's needed.
A button is in a disabled state if you do not add the on_press() function when building it. I've used this quite a lot in a couple of projects I'm working on. However, I ran into a situation where I needed to do something similar with a toggler and cannot put the toggler in a disabled state. When creating the toggler the message (for the Fn Message parameter) is required, and so there is no way to put it in a disabled state if it's needed.