on_cut

Function on_cut 

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

P On cut command.

Receives CUT_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_cut. 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.

§Enabled

You can use the can_cut context property to disable the command handle. When disabled the handler is not called and the command handle signals as disabled.