🧑💻 Simplify component class access functions
This commit is contained in:
parent
d69d4cda45
commit
9a5618ef4b
12 changed files with 82 additions and 94 deletions
|
|
@ -26,7 +26,7 @@ impl ComponentTrait for Icon {
|
|||
#[rustfmt::skip]
|
||||
fn setup_before_prepare(&mut self, cx: &mut Context) {
|
||||
if let Some(icon_name) = self.icon_name().get() {
|
||||
self.prepend_classes(
|
||||
self.alter_classes(ClassesOp::Prepend,
|
||||
concat_string!("bi-", icon_name, " ", self.font_size().to_string()),
|
||||
);
|
||||
cx.set_param::<bool>(PARAM_BASE_INCLUDE_ICONS, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue