We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ac5d12 + 2a66a2d commit 891f1d1Copy full SHA for 891f1d1
frameworks/keyed/karyon/app.js
@@ -36,14 +36,14 @@ const actions = [
36
['Create 1,000 rows', 'run', () => rows(create(1000))],
37
['Create 10,000 rows', 'runlots', () => rows(create(10000))],
38
['Append 1,000 rows', 'add', () => rows([...rows(), ...create(1000)])],
39
+ ['Update every 10th row', 'update', () => State.batch(() => {
40
+ for (let r = rows(), i = 0; i < r.length; i += 10)
41
+ r[i]?.text(`${r[i].text()} !!!`);
42
+ })],
43
['Clear', 'clear', () => rows([])],
- ['Update every 10th row', 'update', () => {
- for (let i = 0, all = rows(), row; i < all.length; i += 10)
- (row = all[i])?.text(`${row.text()} !!!`);
- }],
44
['Swap Rows', 'swaprows', () => {
45
- const all = rows();
46
- [all[1], all[998]] = [all[998], all[1]], rows([...all]);
+ const r = rows();
+ [r[1], r[998]] = [r[998], r[1]], rows([...r]);
47
}]].map(([content, id, click]) =>
48
({class: 'col-sm-6 smallpad', content:
49
{is: 'button', id, class: 'btn btn-primary btn-block',
frameworks/keyed/karyon/index.html
@@ -5,5 +5,6 @@
5
<title>Karyon</title>
6
<link href="/css/currentStyle.css" rel="stylesheet"/>
7
<script type="module" src="app.bundle.js"></script>
8
+ </head>
9
<body></body>
10
</html>
0 commit comments