Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
term: Add Table::with_opts() to set options after Table obj was constructed
Matthias Beyer committed 8 months ago
commit 331f341a6edd329c029404b9fdac4b516f6c1da1
parent e3dbfd63bda58ddafb49782f6edbcae944ba524b
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)
    }