pub fn items<'a, A: MenuAction<Message = Message>, L: Into<Cow<'static, str>> + 'static, Message: 'a, Renderer: Renderer + 'a>( key_binds: &HashMap<KeyBind, A>, children: Vec<MenuItem<A, L>>, ) -> Vec<MenuTree<'a, Message, Renderer>>where Element<'a, Message, Theme, Renderer>: From<Button<'a, Message>>,
Create a list of menu items from a vector of MenuItem.
MenuItem
The MenuItem can be either an action or a separator.
key_binds
HashMap
KeyBind
A
children
MenuTree