Function zng_wgt_input::cmd::on_copy

source ·
pub fn on_copy(
    child: impl UiNode,
    handler: impl WidgetHandler<CommandArgs>,
) -> impl UiNode
Expand description

P On copy command.

Receives COPY_CMD command events scoped on the widget. You can use the CLIPBOARD service to send data to the clipboard.

§Preview

You can preview this command event using on_pre_copy. Otherwise the handler is only called after the widget content has a chance to stop propagation.

§Async

You can use async event handlers with this property.