Function zng::menu::icon_fn

source ยท
pub fn icon_fn(
    child: impl UiNode,
    icon: impl IntoVar<WidgetFn<()>>,
) -> impl UiNode
Expand description

P Menu item icon from widget function.

Set on a Button! inside a sub-menu to define the menu Icon! for that button.

This property is an alias for sub::start_column_fn.