💥 Introduce ComponentRef to add comp's to packs

This commit is contained in:
Manuel Cillero 2023-07-19 19:18:20 +02:00
parent df2d15a839
commit 0a95f3d51c
12 changed files with 106 additions and 103 deletions

View file

@ -83,12 +83,12 @@ impl Row {
}
pub fn with_column(mut self, column: grid::Column) -> Self {
self.columns.alter_pack(PackOp::Add, column);
self.columns.alter(PackOp::Add, ComponentRef::to(column));
self
}
pub fn alter_columns(&mut self, op: PackOp, column: grid::Column) -> &mut Self {
self.columns.alter_pack(op, column);
self.columns.alter(op, ComponentRef::to(column));
self
}