open-consul/ui-v2/app/templates/components/tabular-collection.hbs
John Cowen 72ff1f0607
ui: New Confirmation Dialogs (#7007)
* ui: Change action-group to use new popup-menu component in intentions

* ui: Slight amends to aria-menu to prevent scrolling

* ui: Begin to use aria-menu/popover-menu for other elements

* Use a simpler, hackier method to fix up zIndexing

* ui: Implement new confirmation dialogs in other list views (#7080)

This includes another amend to the popover-menu in order to allow
mutiple confirmations/subpanels in the same popover menu.

The functionality added here to allow this is likely to change in the
future.
2020-01-22 12:08:29 +00:00

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