pub fn on_activate(
        mut self,
        on_activate: impl FnMut(&mut MenuEventCtx, &mut T, &Env) + 'static,
    ) -> Self {
        self.callback = Some(Box::new(on_activate));
        self
    }
/// Provide a callback that will be invoked when this menu item is chosen.
Provide a callback that will be invoked when this menu item is chosen.
Provide a callback that will be invoked when this menu item is chosen .
pub fn on_activate(
        mut self,
        on_activate: impl FnMut(&mut MenuEventCtx, &mut T, &Env) + 'static,
    ) -> Self {
        self.callback = Some(Box::new(on_activate));
        self
    }
pub fn on_activate ( mut self , on_activate : impl FnMut ( & mut MenuEventCtx , & mut T , & Env ) + ' static , ) -> Self { self . callback = Some ( Box :: new ( on_activate ) ) ; self }
Provide a callback that will be invoked when this menu item is chosen.
Provide a callback that will be invoked when this menu item is chosen .
mut self
on_activate
impl FnMut(&mut MenuEventCtx, &mut T, &Env) + 'static
mut self
on_activate
impl FnMut(&mut MenuEventCtx, &mut T, &Env) + 'static