mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 02:20:43 +08:00
term/table: Add Table::with_opts() to set options after Table obj was constructed
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
committed by
Lorenz Leutgeb
parent
fb458537b4
commit
016cab1dbf
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user