Function zng_wgt_button::cmd_param

source ยท
pub fn cmd_param<T: VarValue>(
    child: impl UiNode,
    cmd_param: impl IntoVar<T>,
) -> impl UiNode
Expand description

P Optional command parameter for the button to use when notifying cmd.

If T is Option<CommandParam> the param can be dynamically unset, otherwise the value is the param.