zng::widget::node

Function interactive_node

source
pub fn interactive_node(
    child: impl UiNode,
    interactive: impl IntoVar<bool>,
) -> impl UiNode
Expand description

Create a node that controls interaction for all widgets inside node.

When the interactive var is false all descendant widgets are BLOCKED.

Unlike the interactive property this does not apply to the contextual widget, only child and descendants.

The node works for either if the child is a widget or if it only contains widgets, the performance is slightly better if the child is a widget.