on_disabled

Function on_disabled 

Source
pub fn on_disabled(
    child: impl IntoUiNode,
    handler: Box<dyn FnMut(&()) -> HandlerResult + Send>,
) -> UiNode
Expand description

Widget normal interactions now disabled.

Note that this event tracks the actual enabled status of the widget, not the visually enabled status, see Interactivity for more details.

See on_enabled_changed for a more general event.

ยงRoute

This event property uses a direct route, that is, it cannot be intercepted in parent widgets.