🚚 Rename add_element() to more descriptive name
This commit is contained in:
parent
aba7c4d8ce
commit
5840dc215e
2 changed files with 4 additions and 4 deletions
|
|
@ -98,7 +98,7 @@ impl Form {
|
|||
}
|
||||
|
||||
#[rustfmt::skip]
|
||||
pub fn with_element(mut self, element: impl ComponentTrait) -> Self {
|
||||
pub fn add_element(mut self, element: impl ComponentTrait) -> Self {
|
||||
self.stuff.alter_value(ArcAnyOp::Add(ArcAnyComponent::new(element)));
|
||||
self
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue