lib: Introduce helper to imUI table state

This commit is contained in:
Erik Kundt
2024-09-04 14:37:42 +02:00
parent 362c69ca9d
commit 57d06e66cd
+4
View File
@@ -664,6 +664,10 @@ pub mod widget {
pub fn selected(&self) -> Option<usize> {
self.internal.selected()
}
pub fn select_first(&mut self) {
self.internal.select(Some(0));
}
}
impl<R> TableState<R>