pub enum TableMessage {
Show 19 variants
Up,
Down,
First,
Last,
PageUp(usize),
PageDown(usize),
Select,
SortAsc(usize),
SortDesc(usize),
SortToggle(usize),
SortClear,
RemoveSort(usize),
AddSortAsc(usize),
AddSortDesc(usize),
AddSortToggle(usize),
IncreaseColumnWidth(usize),
DecreaseColumnWidth(usize),
SetFilter(String),
ClearFilter,
}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.
SortAsc(usize)
Set the primary sort to this column, ascending. Replaces the entire sort stack with just this entry.
SortDesc(usize)
Set the primary sort to this column, descending. Replaces the entire sort stack with just this entry.
SortToggle(usize)
2-cycle toggle. Never clears.
- If this column is already the primary sort: flip Asc <-> Desc.
- If this column is not currently in the sort stack: activate it
using
Column::default_sort(). Default fallback:Ascending.
SortClear
Drop the primary sort and any tiebreakers. Returns to load order.
(Renamed from ClearSort for naming consistency with the rest of
the family. The old ClearSort is removed in Phase 2 Task 16.)
RemoveSort(usize)
Drop just one column from the multi-sort stack. The remaining columns keep their relative order. If the dropped column was primary, the next tiebreaker is promoted.
AddSortAsc(usize)
Add this column to the sort stack as a lowest-priority Asc tiebreaker. If the column is already in the stack, replace its direction in place – do not reorder.
AddSortDesc(usize)
Add this column to the sort stack as a lowest-priority Desc tiebreaker. If already in the stack, replace direction in place.
AddSortToggle(usize)
Toggle this column’s tiebreaker direction. If not in the stack,
add it using Column::default_sort().
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 (const: unstable) · 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
impl Eq for TableMessage
Source§impl PartialEq for TableMessage
impl PartialEq 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