Skip to main content

VirtualTreeViewModifiers

Trait VirtualTreeViewModifiers 

pub trait VirtualTreeViewModifiers<Id>: Sized
where Id: Eq + Hash + Clone + Send + Sync + 'static,
{ // Required methods fn selectable<U>(self, selectable: impl Res<U> + 'static) -> Self where U: Into<Selectable> + Clone + 'static; fn selection_follows_focus<U>(self, flag: impl Res<U> + 'static) -> Self where U: Into<bool> + Clone + 'static; fn selected_row_ids<R>( self, selected_row_ids: impl Res<R> + 'static, ) -> Self where R: Deref<Target = [Id]> + Clone + 'static; fn expanded_row_ids<R>( self, expanded_row_ids: impl Res<R> + 'static, ) -> Self where R: Deref<Target = [Id]> + Clone + 'static; fn on_row_select<F>(self, callback: F) -> Self where F: 'static + Fn(&mut EventContext<'_>, Id); fn on_row_focus<F>(self, callback: F) -> Self where F: 'static + Fn(&mut EventContext<'_>, Id); fn on_row_check_toggle<F>(self, callback: F) -> Self where F: 'static + Fn(&mut EventContext<'_>, Id); fn on_row_toggle<F>(self, callback: F) -> Self where F: 'static + Fn(&mut EventContext<'_>, Id, bool); }

Required Methods§

fn selectable<U>(self, selectable: impl Res<U> + 'static) -> Self
where U: Into<Selectable> + Clone + 'static,

fn selection_follows_focus<U>(self, flag: impl Res<U> + 'static) -> Self
where U: Into<bool> + Clone + 'static,

fn selected_row_ids<R>(self, selected_row_ids: impl Res<R> + 'static) -> Self
where R: Deref<Target = [Id]> + Clone + 'static,

fn expanded_row_ids<R>(self, expanded_row_ids: impl Res<R> + 'static) -> Self
where R: Deref<Target = [Id]> + Clone + 'static,

fn on_row_select<F>(self, callback: F) -> Self
where F: 'static + Fn(&mut EventContext<'_>, Id),

fn on_row_focus<F>(self, callback: F) -> Self
where F: 'static + Fn(&mut EventContext<'_>, Id),

fn on_row_check_toggle<F>(self, callback: F) -> Self
where F: 'static + Fn(&mut EventContext<'_>, Id),

fn on_row_toggle<F>(self, callback: F) -> Self
where F: 'static + Fn(&mut EventContext<'_>, Id, bool),

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<T, V, Id> VirtualTreeViewModifiers<Id> for Handle<'_, VirtualTreeView<T, V, Id>>
where V: Deref<Target = [T]> + Clone + 'static, T: PartialEq + Clone + 'static, Id: Eq + Hash + Clone + Send + Sync + 'static,