pub trait TreeViewItemProps: ElementBuilder {
// Provided methods
fn is_expanded<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn is_selected<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn on_expanded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self { ... }
fn on_collapsed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self { ... }
}Expand description
The properties and routed events of TreeViewItem.
Provided Methods§
Sourcefn is_expanded<M>(self, value: impl IntoProp<bool, M>) -> Self
fn is_expanded<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn is_selected<M>(self, value: impl IntoProp<bool, M>) -> Self
fn is_selected<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn on_expanded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_expanded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles TreeViewItem::expanded_event.
Sourcefn on_collapsed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
fn on_collapsed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self
Handles TreeViewItem::collapsed_event.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".