Skip to content

Commit 96e7405

Browse files
committed
Move Fast to non-keyed frameworks
1 parent e3c35a7 commit 96e7405

File tree

12 files changed

+11
-4
lines changed

12 files changed

+11
-4
lines changed

frameworks/keyed/fast/src/App.ts renamed to frameworks/non-keyed/fast/src/App.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const template = html<BenchmarkApp>`
66
<div class="jumbotron">
77
<div class="row">
88
<div class="col-md-6">
9-
<h1>Fast-"keyed"</h1>
9+
<h1>Fast Framework - non-keyed</h1>
1010
</div>
1111
<div class="col-md-6">
1212
<div class="row">

frameworks/keyed/fast/src/components/Table.ts renamed to frameworks/non-keyed/fast/src/components/Table.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
import { customElement, FASTElement, html, repeat, observable } from '@microsoft/fast-element';
22
import { RowItem } from 'src/utils/build-dummy-data';
33

4+
let fixedRowId = 10_0000;
5+
46
const template = html<Table>`
57
<table class="table table-hover table-striped test-data" @click=${(x, c) => x.handleClick(c.event)}>
68
<tbody id="tbody">
79
${repeat(
810
x => x.rows,
911
html`
10-
<tr data-id="${row => row.id}" class="${(row, c) => (c.parent.selectedRowId === row.id ? 'danger' : '')}">
12+
<tr
13+
data-id="${row => row.id}"
14+
data-indexId="${(x, c) => c.index + 1}"
15+
class="${(row, c) => (c.parent.selectedRowId === row.id ? 'danger' : '')}"
16+
>
1117
<td class="col-md-1">${row => row.id}</td>
1218
<td class="col-md-4">
13-
<a class="lbl" data-row-id="${row => row.id}" }>${row => row.label}</a>
19+
<a class="lbl" data-row-id="${row => row.id}">${row => row.label}</a>
1420
</td>
1521
<td class="col-md-1">
1622
<a class="remove" data-row-id="${row => row.id}">
@@ -19,7 +25,8 @@ const template = html<Table>`
1925
</td>
2026
<td class="col-md-6"></td>
2127
</tr>
22-
`
28+
`,
29+
{ positioning: true }
2330
)}
2431
</tbody>
2532
</table>

0 commit comments

Comments
 (0)