👽️ Aplica cambios de API asociados a componentes

This commit is contained in:
Manuel Cillero 2023-06-24 01:47:40 +02:00
parent 9993b5975b
commit 297d1fc338
14 changed files with 63 additions and 63 deletions

View file

@ -61,7 +61,7 @@ impl ComponentTrait for Input {
}
#[rustfmt::skip]
fn prepare_component(&self, rcx: &mut RenderContext) -> Markup {
fn prepare_component(&self, rcx: &mut RenderContext) -> PrepareMarkup {
let type_input = match self.input_type() {
InputType::Textfield => "text",
InputType::Password => "password",
@ -71,7 +71,7 @@ impl ComponentTrait for Input {
InputType::Url => "url",
};
let id = self.name().get().map(|name| concat_string!("edit-", name));
html! {
PrepareMarkup::With(html! {
div class=[self.classes().get()] {
@if let Some(label) = self.label().prepare_optional(rcx) {
label class="form-label" for=[&id] {
@ -102,7 +102,7 @@ impl ComponentTrait for Input {
div class="form-text" { (description) }
}
}
}
})
}
fn as_ref_any(&self) -> &dyn AnyComponent {