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 7 months ago
commit 304f9a60d113f8743247a90a8a7a59ac4b3da909
parent aaa7f17f2cf2a667ec04fe57c9154db4bdfa88e5
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)
    }