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 ba391988c48b51a06363696306419dacbf5ce020
parent a53ba340c0492719ac4c15bdabadff5f28a4dd24
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)
    }