🧑💻 Simplify component class access functions
This commit is contained in:
parent
d69d4cda45
commit
9a5618ef4b
12 changed files with 82 additions and 94 deletions
|
|
@ -29,7 +29,7 @@ impl ComponentTrait for Block {
|
|||
}
|
||||
|
||||
fn setup_before_prepare(&mut self, _cx: &mut Context) {
|
||||
self.prepend_classes("block__container");
|
||||
self.alter_classes(ClassesOp::Prepend, "block__container");
|
||||
}
|
||||
|
||||
fn prepare_component(&self, cx: &mut Context) -> PrepareMarkup {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue