wavefunk-ui 0.1.5

Askama and htmx UI component base for Wave Funk Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<table class="{{ self.class_name() }}">
  <thead>
    <tr>
      {%- for header in headers -%}
      <th{% if !header.class_name().is_empty() %} class="{{ header.class_name() }}"{% endif %}>{{ header.label }}</th>
      {%- endfor -%}
    </tr>
  </thead>
  <tbody>
    {%- for row in rows -%}
    <tr{% if row.selected %} class="is-selected" aria-selected="true"{% endif %}>
      {%- for cell in row.cells -%}
      <td{% if !cell.class_name().is_empty() %} class="{{ cell.class_name() }}"{% endif %}>{{ cell.text }}</td>
      {%- endfor -%}
    </tr>
    {%- endfor -%}
  </tbody>
</table>