You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/app/templates/components/tabular-collection.hbs

27 lines
970 B

{{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}}