meilisearch-admin/app/components/royal-table.hbs
2022-04-26 12:41:33 +03:00

25 lines
563 B
Handlebars

<table class="royal-table" ...attributes>
{{#if @caption}}
<caption>
{{@caption}}
</caption>
{{/if}}
<thead>
{{yield
(component
'royal-table/row'
place='head'
onClickHead=@onClickHead
onSort=@onSort
sortingProp=@sortingProp
sortingIconComponent=@sortingIconComponent
parent=this
)
}}
</thead>
<tbody>
{{#each @data as |item index|}}
{{yield (component 'royal-table/row' place='body' data=item parent=this) item index}}
{{/each}}
</tbody>
</table>