Struct leptos_struct_table::TableChangeEvent
source · pub struct TableChangeEvent<Row, Col, T> {
pub row_index: usize,
pub col_index: usize,
pub old_row: Row,
pub column: Col,
pub new_value: T,
}
Expand description
The event provided to the on_change
prop of the table component
Fields§
§row_index: usize
The index of the table row that contains the cell that was changed. Starts at 0.
col_index: usize
The index of the table column that contains the cell that was changed. Starts at 0.
old_row: Row
The old value of the row that was changed. This is the struct for which the table component is generated.
column: Col
The column enum variant of the column that was changed.
new_value: T
The new value of the row that was changed. This will be of a column value enum type that is generated with the table component.
Auto Trait Implementations§
impl<Row, Col, T> RefUnwindSafe for TableChangeEvent<Row, Col, T>
impl<Row, Col, T> Send for TableChangeEvent<Row, Col, T>
impl<Row, Col, T> Sync for TableChangeEvent<Row, Col, T>
impl<Row, Col, T> Unpin for TableChangeEvent<Row, Col, T>
impl<Row, Col, T> UnwindSafe for TableChangeEvent<Row, Col, T>
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