ui_suite_daisyui-4.0.x-dev/components/table/table.twig
components/table/table.twig
{% set attributes = zebra ? attributes.addClass('table-zebra') : attributes %}
{% set attributes = pinned_rows ? attributes.addClass('table-pin-rows') : attributes %}
{% set attributes = pinned_cols ? attributes.addClass('table-pin-cols') : attributes %}
{% set attributes = variant ? attributes.addClass('table-' ~ variant) : attributes %}
<table{{ attributes.addClass('table') }}>
{% if header %}
<thead>
{{ header }}
</thead>
{% endif %}
{% if body %}
<tbody>
{% for row in body %}
{{ row }}
{% endfor %}
</tbody>
{% endif %}
{% if footer %}
<tfoot>
{{ footer }}
</tfoot>
{% endif %}
</table>
