Struct leptos_struct_table::TableRowEvent
source · pub struct TableRowEvent<K: 'static> {
pub key: K,
pub index: usize,
pub mouse_event: MouseEvent,
}
Expand description
Event emitted when a table row is clicked.
Fields§
§key: K
The key of the row. Value of the field of the struct with the #[table(key)]
attribute.
index: usize
The index of the row. Starts at 0 for the first row.
mouse_event: MouseEvent
The mouse event that triggered the event.
Trait Implementations§
Auto Trait Implementations§
impl<K> RefUnwindSafe for TableRowEvent<K>where
K: RefUnwindSafe,
impl<K> !Send for TableRowEvent<K>
impl<K> !Sync for TableRowEvent<K>
impl<K> Unpin for TableRowEvent<K>where
K: Unpin,
impl<K> UnwindSafe for TableRowEvent<K>where
K: UnwindSafe,
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