mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-21 18:40:46 +08:00
lib: Introduce helper to imUI table state
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user