pub enum TableEvent {
RowSelected(usize),
CellEdited {
row: usize,
col: usize,
new_value: String,
},
SortChanged {
col: usize,
ascending: bool,
},
ColumnResized {
col: usize,
new_width: f32,
},
FilterChanged {
col: usize,
new_filter: String,
},
}Expand description
Events emitted by the table widget in response to user interaction.
Callers receive these via a callback or event list and use them to update application state (e.g. persist the new sort order, broadcast a row selection to other panels, etc.).
Variants§
RowSelected(usize)
A row was selected (by click or keyboard navigation).
The value is the visible row index (after sort/filter).
CellEdited
A cell’s value was edited and committed.
Fields
SortChanged
The sort order changed.
ColumnResized
A column was resized by the user.
FilterChanged
The filter text for a column changed.
Trait Implementations§
Source§impl Clone for TableEvent
impl Clone for TableEvent
Source§fn clone(&self) -> TableEvent
fn clone(&self) -> TableEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TableEvent
impl RefUnwindSafe for TableEvent
impl Send for TableEvent
impl Sync for TableEvent
impl Unpin for TableEvent
impl UnsafeUnpin for TableEvent
impl UnwindSafe for TableEvent
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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