Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
term/table: Add Table::with_opts() to set options after Table obj was constructed
Matthias Beyer committed 8 months ago
commit 016cab1dbf40578207a16a9dcc9238c034cf361d
parent fb458537b458664dc8b43ea9de823fda66d663e6
1 file changed +5 -0
modified crates/radicle-term/src/table.rs
@@ -182,6 +182,11 @@ impl<const W: usize, T: Cell> Table<W, T> {
        }
    }

+
    pub fn with_opts(mut self, opts: TableOptions) -> Self {
+
        self.opts = opts;
+
        self
+
    }
+

    pub fn size(&self, parent: Constraint) -> Size {
        self.outer(parent)
    }