Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
lib: Introduce helper to imUI table state
Erik Kundt committed 1 year ago
commit 57d06e66cda424708244c3f92c2330e2ac3d8855
parent 362c69ca9dcfe35ab2b576f658e1cacc42a19a17
1 file changed +4 -0
modified src/ui/im.rs
@@ -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>