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