Function zng::widget::on_node_op
source · pub fn on_node_op(
child: impl UiNode,
handler: impl WidgetHandler<OnNodeOpArgs>,
) -> impl UiNode
Expand description
P
On any node operation.
This property calls handler
for any widget node operation, after the widget content has processed the operation. This means
that the handler
is raised after any on_pre_node_op
handler. Note that properties of NestGroup::EVENT
or lower
can still process the operation before this event.
§Handlers
This property accepts any WidgetHandler
, including the async handlers. Use one of the handler macros, hn!
,
hn_once!
, async_hn!
or async_hn_once!
, to declare a handler closure.
§Async
The async handlers spawn a task that is associated with the widget, it will only update when the widget updates, so the task pauses when the widget is deinited, and is canceled when the widget is dropped.