✨ Añade identificador en componentes
This commit is contained in:
parent
cb04a29388
commit
f0e4aea672
18 changed files with 77 additions and 90 deletions
|
|
@ -57,6 +57,10 @@ impl ComponentTrait for Column {
|
|||
COMPONENT_COLUMN
|
||||
}
|
||||
|
||||
fn id(&self) -> Option<String> {
|
||||
self.id.get()
|
||||
}
|
||||
|
||||
fn weight(&self) -> isize {
|
||||
self.weight
|
||||
}
|
||||
|
|
@ -71,7 +75,7 @@ impl ComponentTrait for Column {
|
|||
|
||||
fn default_render(&self, rcx: &mut RenderContext) -> Markup {
|
||||
html! {
|
||||
div id=[self.id().get()] class=[self.classes().get()] {
|
||||
div id=[self.id()] class=[self.classes().get()] {
|
||||
(self.components().render(rcx))
|
||||
}
|
||||
}
|
||||
|
|
@ -149,10 +153,6 @@ impl Column {
|
|||
|
||||
// Column 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