Function patternfly_yew::components::menu::use_close_menu_callback

source ·
pub fn use_close_menu_callback<'hook>(
) -> impl 'hook + Hook<Output = Callback<()>>
Expand description

Provide a stable callback for closing the menu.

NOTE: If the hook is used inside a component which is not wrapped with a component providing a CloseMenuContext, then all operations become a no-op.

§Note

When used in function components and hooks, this hook is equivalent to:

pub fn use_close_menu_callback() -> Callback<()> {
    /* implementation omitted */
}