diff --git a/crates/egui_extras/src/table.rs b/crates/egui_extras/src/table.rs index b09a477bce5..eb3cc7def3f 100644 --- a/crates/egui_extras/src/table.rs +++ b/crates/egui_extras/src/table.rs @@ -1256,6 +1256,12 @@ impl<'a, 'b> TableRow<'a, 'b> { self.selected = selected; } + /// Set the hovered highlight state for cells added after a call to this function. + #[inline] + pub fn set_hovered(&mut self, hovered: bool) { + self.hovered = hovered; + } + /// Returns a union of the [`Response`]s of the cells added to the row up to this point. /// /// You need to add at least one row to the table before calling this function.