2022-09-09 15:41:23 +00:00
|
|
|
<div class='max-w-screen overflow-x-auto'>
|
2022-09-16 07:37:33 +00:00
|
|
|
<table class='simple-table' ...attributes>
|
2022-09-09 15:41:23 +00:00
|
|
|
{{#if @caption}}
|
|
|
|
|
<caption>
|
|
|
|
|
{{@caption}}
|
|
|
|
|
</caption>
|
|
|
|
|
{{/if}}
|
|
|
|
|
<thead>
|
2022-09-06 11:57:55 +00:00
|
|
|
<tr>
|
|
|
|
|
{{yield
|
2022-09-09 15:41:23 +00:00
|
|
|
(component
|
2022-09-16 07:37:33 +00:00
|
|
|
'simple-table/column'
|
2022-09-09 15:41:23 +00:00
|
|
|
place='head'
|
|
|
|
|
onClickHead=@onClickHead
|
|
|
|
|
onSort=@onSort
|
|
|
|
|
sortingProp=@sortingProp
|
|
|
|
|
sortingIconComponent=@sortingIconComponent
|
|
|
|
|
parent=this
|
|
|
|
|
)
|
2022-09-06 11:57:55 +00:00
|
|
|
}}
|
|
|
|
|
</tr>
|
2022-09-09 15:41:23 +00:00
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{{#each @data as |item index|}}
|
|
|
|
|
<tr>
|
|
|
|
|
{{yield
|
2022-09-16 07:37:33 +00:00
|
|
|
(component 'simple-table/column' place='body' data=item parent=this)
|
2022-09-09 15:41:23 +00:00
|
|
|
item
|
|
|
|
|
index
|
|
|
|
|
}}
|
|
|
|
|
</tr>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|