From 016cab1dbf40578207a16a9dcc9238c034cf361d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 7 Sep 2025 13:09:26 +0200 Subject: [PATCH] term/table: Add Table::with_opts() to set options after Table obj was constructed Signed-off-by: Matthias Beyer --- crates/radicle-term/src/table.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/radicle-term/src/table.rs b/crates/radicle-term/src/table.rs index 0b7db0b1..6e4e1aef 100644 --- a/crates/radicle-term/src/table.rs +++ b/crates/radicle-term/src/table.rs @@ -182,6 +182,11 @@ impl Table { } } + pub fn with_opts(mut self, opts: TableOptions) -> Self { + self.opts = opts; + self + } + pub fn size(&self, parent: Constraint) -> Size { self.outer(parent) }