on_new

Function on_new 

Source
pub fn on_new(child: impl IntoUiNode, handler: Handler<CommandArgs>) -> UiNode
Expand description

P On new command.

Receives NEW_CMD command events scoped on the widget. The command parameter can be the new item type identifier.

§Command

This property will subscribe to the NEW_CMD command scoped on the widget. If set on the Window! root widget it will also subscribe to the command scoped on the window.

The command handle is enabled by default and can be disabled using the contextual property can_new .

§Route

This event property uses the normal route, that is, the handler is called after the children widget handlers and after the $pn_pre_ident handlers.