♻️ Atributos class e id explícitos en html!
Se usa `class="..."` e `id="..."` en lugar de `div.a #x`. El HTML generado es idéntico.
This commit is contained in:
parent
58d1fef4f1
commit
3f3634fdab
21 changed files with 80 additions and 74 deletions
|
|
@ -80,7 +80,7 @@ impl Component for Table {
|
|||
let colspan = self.columns().len().max(1).to_string();
|
||||
|
||||
Ok(html! {
|
||||
div.table-responsive {
|
||||
div class="table-responsive" {
|
||||
table (self.props().unpack(cx)) {
|
||||
@if !self.columns().is_empty() {
|
||||
thead {
|
||||
|
|
@ -108,7 +108,7 @@ impl Component for Table {
|
|||
{
|
||||
tbody {
|
||||
tr {
|
||||
td.table-empty colspan=(colspan) { (empty) }
|
||||
td class="table-empty" colspan=(colspan) { (empty) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue