zng::app

Function on_save_as

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

P On save-as command.

Receives SAVE_AS_CMD command events scoped on the widget. Usually prompts the user for a new save path.

You can use WINDOWS.native_file_dialog to prompt the user for a file or folder path.

§Preview

You can preview this command event using on_pre_save_as. 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.