Skip to main content

VirtualTableModifiers

Trait VirtualTableModifiers 

Source
pub trait VirtualTableModifiers<Id, K = String>: Sized
where K: Clone + PartialEq + Send + Sync + 'static,
{ // Required methods fn sort_state( self, sort_state: impl Res<Option<TableSortState<K>>> + 'static, ) -> Self; fn resizable_columns<U>(self, flag: impl Res<U> + 'static) -> Self where U: Into<bool> + Clone + 'static; fn sort_cycle<U>(self, cycle: impl Res<U> + 'static) -> Self where U: Into<TableSortCycle> + Clone + 'static; 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 on_sort<F>(self, callback: F) -> Self where F: 'static + Fn(&mut EventContext<'_>, K, TableSortDirection) + Send + Sync; fn on_row_select<F>(self, callback: F) -> Self where F: 'static + Fn(&mut EventContext<'_>, Id); }
Expand description

Modifiers for configuring controlled virtual table state and callbacks.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn selected_row_ids<R>(self, selected_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_row_select<F>(self, callback: F) -> Self
where F: 'static + Fn(&mut EventContext<'_>, Id),

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§

Source§

impl<T, V, Id, H, K> VirtualTableModifiers<Id, K> for Handle<'_, VirtualTable<T, V, Id, H, K>>
where V: Deref<Target = [T]> + Clone + 'static, T: PartialEq + Clone + 'static, Id: PartialEq + Clone + 'static, H: Clone + View, K: Clone + PartialEq + Send + Sync + 'static,