wavefunk-ui 0.1.1

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 class="{{ header.class_name() }}">{{ 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 class="{{ cell.class_name() }}">{{ cell.text }}</td>
      {%- endfor -%}
    </tr>
    {%- endfor -%}
  </tbody>
</table>