Function zng::widget::modal_included
source ยท pub fn modal_included(
child: impl UiNode,
modal_or_descendant: impl IntoVar<WidgetId>,
) -> impl UiNode
Expand description
P
Include itself in the allow list of another widget that is modal
or descendant of modal.
Note that this is only needed for widgets that are not descendants nor ancestors of the modal widget, but still need to be interactive when the modal is active.
See also modal_includes
if you prefer setting the included widget id on the modal widget.
This property calls set_modal_included
on the widget.