pub enum TableMessage {
}Expand description
Messages that can be sent to a Table component.
Variants§
Up
Move selection up by one row.
Down
Move selection down by one row.
First
Move selection to the first row.
Last
Move selection to the last row.
PageUp(usize)
Move selection up by a page.
PageDown(usize)
Move selection down by a page.
Select
Confirm the current selection.
SortBy(usize)
Sort by the given column index (primary sort).
If already the primary sort column, toggles direction. If sorted ascending, becomes descending. If sorted descending, clears the sort. If a different column, replaces all sorts with this column ascending.
AddSort(usize)
Add a column to the sort stack as a tiebreaker.
If the column is already in the sort stack, toggles its direction. If not present, adds it as the lowest-priority sort.
ClearSort
Clear all sorts, returning to original order.
IncreaseColumnWidth(usize)
Increase the width of the column at the given index.
DecreaseColumnWidth(usize)
Decrease the width of the column at the given index.
The width will not go below the minimum of 3 characters.
SetFilter(String)
Set the filter text for searching rows.
ClearFilter
Clear the filter text.
Trait Implementations§
Source§impl Clone for TableMessage
impl Clone for TableMessage
Source§fn clone(&self) -> TableMessage
fn clone(&self) -> TableMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TableMessage
impl Debug for TableMessage
Source§impl PartialEq for TableMessage
impl PartialEq for TableMessage
impl Eq for TableMessage
impl StructuralPartialEq for TableMessage
Auto Trait Implementations§
impl Freeze for TableMessage
impl RefUnwindSafe for TableMessage
impl Send for TableMessage
impl Sync for TableMessage
impl Unpin for TableMessage
impl UnsafeUnpin for TableMessage
impl UnwindSafe for TableMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more