pub trait MenuBaseProps: ElementBuilder {
// Provided methods
fn on_opened(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self { ... }
fn on_closed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self { ... }
}Expand description
The properties and routed events of MenuBase.
Provided Methods§
Sourcefn on_opened(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_opened(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles MenuBase::opened_event.
Sourcefn on_closed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_closed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles MenuBase::closed_event.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".