pub enum TableEvent {
SelectRow(usize),
DoubleClickedRow(usize),
SelectColumn(usize),
SelectCell(usize, usize),
DoubleClickedCell(usize, usize),
ColumnWidthsChanged(Vec<Pixels>),
MoveColumn(usize, usize),
RightClickedRow(Option<usize>),
RightClickedCell(usize, usize),
ClearSelection,
}Expand description
The Table event.
Variants§
SelectRow(usize)
Single click or move to selected row.
DoubleClickedRow(usize)
Double click on the row.
SelectColumn(usize)
Selected column.
SelectCell(usize, usize)
A cell has been selected (clicked or navigated to via keyboard).
Emitted when a cell is selected in cell selection mode.
The first usize is the row index, and the second usize is the column index.
This event is also emitted when navigating between cells using keyboard shortcuts.
DoubleClickedCell(usize, usize)
A cell has been double-clicked.
Emitted when a cell is double-clicked in cell selection mode.
The first usize is the row index, and the second usize is the column index.
Use this event to trigger actions like opening a detail view or editing the cell content.
ColumnWidthsChanged(Vec<Pixels>)
The column widths have changed.
The Vec<Pixels> contains the new widths of all columns.
MoveColumn(usize, usize)
A column has been moved.
The first usize is the original index of the column,
and the second usize is the new index of the column.
RightClickedRow(Option<usize>)
A row has been right-clicked.
Contains the row index, or None if right-clicked on an empty area.
Use this event to show context menus for rows.
RightClickedCell(usize, usize)
A cell has been right-clicked.
Emitted when a cell is right-clicked in cell selection mode.
The first usize is the row index, and the second usize is the column index.
Use this event to show context menus specific to the cell content. The right-clicked cell is highlighted with a subtle border until another cell is clicked.
ClearSelection
The selection has been cleared.
This event is emitted when the selection is cleared.
Trait Implementations§
Source§impl Clone for TableEvent
impl Clone for TableEvent
Source§fn clone(&self) -> TableEvent
fn clone(&self) -> TableEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<D> EventEmitter<TableEvent> for TableState<D>where
D: TableDelegate,
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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