use_close_menu

Function use_close_menu 

Source
pub fn use_close_menu<'hook>() -> impl 'hook + Hook<Output = UseCloseMenu>
Expand description

Allow 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() -> UseCloseMenu {
    /* implementation omitted */
}