mirror of
https://github.com/status-im/consul.git
synced 2025-01-28 14:34:59 +00:00
06d09d11f1
* Change all instances of yield/block-slots to use attributes over positional arguments * Remove the ability to use yield/block-slots with positional params
25 lines
1.0 KiB
Handlebars
25 lines
1.0 KiB
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<input type="radio" name="actions" id="actions_close" onchange={{action change}} value="" /></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 index) change checked)}}{{yield cell.item index}}{{/yield-slot}}
|
|
</td>
|
|
{{/if}}
|
|
</tr>
|
|
{{~/each~}}
|
|
{{/ember-native-scrollable}} |