pub struct TreeProps<T: Clone + PartialEq> {
pub is_expanded: bool,
pub tree: TreeData<T>,
pub on_collapse: Option<Callback<(NodeId, MouseEvent)>>,
pub on_expand: Option<Callback<(NodeId, MouseEvent)>>,
pub onclick: Option<Callback<(NodeId, MouseEvent)>>,
pub class: Classes,
}Fields§
§is_expanded: bool§tree: TreeData<T>§on_collapse: Option<Callback<(NodeId, MouseEvent)>>§on_expand: Option<Callback<(NodeId, MouseEvent)>>§onclick: Option<Callback<(NodeId, MouseEvent)>>§class: ClassesTrait Implementations§
source§impl<T: PartialEq + Clone + PartialEq> PartialEq for TreeProps<T>
impl<T: PartialEq + Clone + PartialEq> PartialEq for TreeProps<T>
impl<T: Clone + PartialEq> StructuralPartialEq for TreeProps<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TreeProps<T>
impl<T> !Send for TreeProps<T>
impl<T> !Sync for TreeProps<T>
impl<T> Unpin for TreeProps<T>
impl<T> !UnwindSafe for TreeProps<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.