✨ Añade identificador en componentes
This commit is contained in:
parent
cb04a29388
commit
f0e4aea672
18 changed files with 77 additions and 90 deletions
|
|
@ -36,6 +36,10 @@ impl ComponentTrait for Form {
|
|||
COMPONENT_FORM
|
||||
}
|
||||
|
||||
fn id(&self) -> Option<String> {
|
||||
self.id.get()
|
||||
}
|
||||
|
||||
fn weight(&self) -> isize {
|
||||
self.weight
|
||||
}
|
||||
|
|
@ -55,7 +59,7 @@ impl ComponentTrait for Form {
|
|||
};
|
||||
html! {
|
||||
form
|
||||
id=[self.id().get()]
|
||||
id=[self.id()]
|
||||
class=[self.classes().get()]
|
||||
action=[self.action().get()]
|
||||
method=[method]
|
||||
|
|
@ -134,10 +138,6 @@ impl Form {
|
|||
|
||||
// Form GETTERS.
|
||||
|
||||
pub fn id(&self) -> &IdentifierValue {
|
||||
&self.id
|
||||
}
|
||||
|
||||
pub fn classes(&self) -> &Classes {
|
||||
&self.classes
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue