✨ Add with_component() to region "content" in Page
This commit is contained in:
parent
9be23d3cd8
commit
e011cf7f62
8 changed files with 19 additions and 14 deletions
|
|
@ -103,6 +103,13 @@ impl Page {
|
|||
self
|
||||
}
|
||||
|
||||
#[fn_with]
|
||||
pub fn alter_component(&mut self, component: impl ComponentTrait) -> &mut Self {
|
||||
self.regions
|
||||
.add_component_in("content", ArcAnyComponent::new(component));
|
||||
self
|
||||
}
|
||||
|
||||
#[fn_with]
|
||||
pub fn alter_component_in(
|
||||
&mut self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue