Skip to main content

TreeTableModifiers

Trait TreeTableModifiers 

Source
pub trait TreeTableModifiers<Id, K = String>: Sized
where Id: Eq + Hash + Clone + Send + Sync + 'static, K: Eq + Hash + Clone + PartialEq + Send + Sync + 'static,
{ // Required methods fn sort_state( self, sort_state: impl Res<Option<TableSortState<K>>> + 'static, ) -> Self; fn resizable_columns<U: Into<bool> + Clone + 'static>( self, flag: impl Res<U> + 'static, ) -> Self; fn sort_cycle<U: Into<TableSortCycle> + Clone + 'static>( self, cycle: impl Res<U> + 'static, ) -> Self; fn selectable<U: Into<Selectable> + Clone + 'static>( self, selectable: impl Res<U> + 'static, ) -> Self; fn selection_follows_focus<U: Into<bool> + Clone + 'static>( self, flag: impl Res<U> + 'static, ) -> Self; fn selection_mode<U: Into<TableSelectionMode> + Clone + 'static>( self, mode: impl Res<U> + 'static, ) -> Self; fn treegrid_label<U: Into<Option<String>> + Clone + 'static>( self, label: impl Res<U> + 'static, ) -> Self; fn selection<R>(self, selection: impl Res<R> + 'static) -> Self where R: Deref<Target = [Cell<Id, K>]> + 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_sort<F>(self, callback: F) -> Self where F: 'static + Fn(&mut EventContext<'_>, K, TableSortDirection) + Send + Sync; fn on_select<F>(self, callback: F) -> Self where F: 'static + Fn(&mut EventContext<'_>, HashSet<Cell<Id, K>>) + Send + Sync; fn on_row_toggle<F>(self, callback: F) -> Self where F: 'static + Fn(&mut EventContext<'_>, Id, bool); }

Required Methods§

Source

fn sort_state( self, sort_state: impl Res<Option<TableSortState<K>>> + 'static, ) -> Self

Source

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

Source

fn sort_cycle<U: Into<TableSortCycle> + Clone + 'static>( self, cycle: impl Res<U> + 'static, ) -> Self

Source

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

Source

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

Source

fn selection_mode<U: Into<TableSelectionMode> + Clone + 'static>( self, mode: impl Res<U> + 'static, ) -> Self

Source

fn treegrid_label<U: Into<Option<String>> + Clone + 'static>( self, label: impl Res<U> + 'static, ) -> Self

Source

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

Source

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

Source

fn on_sort<F>(self, callback: F) -> Self
where F: 'static + Fn(&mut EventContext<'_>, K, TableSortDirection) + Send + Sync,

Source

fn on_select<F>(self, callback: F) -> Self
where F: 'static + Fn(&mut EventContext<'_>, HashSet<Cell<Id, K>>) + Send + Sync,

Source

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".

Implementors§

Source§

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