27 lines
970 B
Handlebars
27 lines
970 B
Handlebars
{{yield}}
|
|
{{#if hasCaption}}
|
|
<caption>{{#yield-slot name='caption'}}{{yield}}{{/yield-slot}}</caption>
|
|
{{/if}}
|
|
<thead>
|
|
<tr>
|
|
{{#yield-slot name='header'}}{{yield}}{{/yield-slot}}
|
|
{{#if hasActions }}
|
|
<th class="actions">Actions</th>
|
|
{{/if}}
|
|
</tr>
|
|
</thead>
|
|
{{#ember-native-scrollable tagName='tbody' content-size=_contentSize scroll-left=_scrollLeft scroll-top=_scrollTop scrollChange=(action 'scrollChange') clientSizeChange=(action "clientSizeChange")}}
|
|
<tr></tr>
|
|
{{~#each _cells as |cell index|~}}
|
|
<tr data-test-tabular-row style={{{cell.style}}} onclick={{action 'click'}}>
|
|
{{#yield-slot name='row'}}{{yield cell.item index}}{{/yield-slot}}
|
|
{{#if hasActions }}
|
|
<td class="actions">
|
|
{{#yield-slot name='actions' params=(block-params (concat cell.index) (action 'change') checked)}}
|
|
{{yield cell.item index}}
|
|
{{/yield-slot}}
|
|
</td>
|
|
{{/if}}
|
|
</tr>
|
|
{{~/each~}}
|
|
{{/ember-native-scrollable}} |