Skip to main content

TreeViewItemProps

Trait TreeViewItemProps 

Source
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§

Source

fn is_expanded<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn is_selected<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn on_expanded(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self

Source

fn on_collapsed(self, handler: impl Fn(&RoutedEventArgs) + 'static) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§