Skip to content

Commit c452eaa

Browse files
committed
Merge branch 'NullVoxPopuli-simplify-ember-implementation'
2 parents d518d96 + ef6629f commit c452eaa

File tree

4 files changed

+12
-46
lines changed

4 files changed

+12
-46
lines changed

frameworks/keyed/ember/app/components/fast-each.hbs

Lines changed: 0 additions & 10 deletions
This file was deleted.

frameworks/keyed/ember/app/components/fast-each.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

frameworks/keyed/ember/app/components/my-table.hbs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,18 @@
4242

4343

4444
{{#if this.data.length}}
45-
<FastEach class="table table-hover table-striped test-data" @items={{this.data}} as |item|>
46-
<TableRow class={{if (eq item) 'danger'}} @item={{item}} @onSelect={{fn this.select item}} @onRemove={{fn this.remove item}} />
47-
</FastEach>
45+
<table class="table table-hover table-striped test-data">
46+
<tbody>
47+
{{#each this.data key="id" as |item|}}
48+
<tr class={{if (eq item) 'danger'}}>
49+
<td class="col-md-1">{{item.id}}</td>
50+
<td class="col-md-4"><a {{on 'click' (fn this.select item)}}>{{item.label}}</a></td>
51+
<td class="col-md-1"><a {{on 'click' (fn this.remove item)}}><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
52+
<td class="col-md-6"></td>
53+
</tr>
54+
{{/each}}
55+
</tbody>
56+
</table>
4857
{{/if}}
4958

5059

frameworks/keyed/ember/app/components/table-row/template.hbs

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)