|
121 | 121 | <div class="col-md-6">
|
122 | 122 | <div class="row">
|
123 | 123 | <div class="col-sm-6 smallpad">
|
124 |
| - <button type="button" class="btn btn-primary btn-block" id="run" on:click={run} |
| 124 | + <button type="button" class="btn btn-primary btn-block" id="run" onclick={run} |
125 | 125 | >Create 1,000 rows</button
|
126 | 126 | >
|
127 | 127 | </div>
|
128 | 128 | <div class="col-sm-6 smallpad">
|
129 |
| - <button type="button" class="btn btn-primary btn-block" id="runlots" on:click={runLots} |
| 129 | + <button type="button" class="btn btn-primary btn-block" id="runlots" onclick={runLots} |
130 | 130 | >Create 10,000 rows</button
|
131 | 131 | >
|
132 | 132 | </div>
|
133 | 133 | <div class="col-sm-6 smallpad">
|
134 |
| - <button type="button" class="btn btn-primary btn-block" id="add" on:click={add} |
| 134 | + <button type="button" class="btn btn-primary btn-block" id="add" onclick={add} |
135 | 135 | >Append 1,000 rows</button
|
136 | 136 | >
|
137 | 137 | </div>
|
|
140 | 140 | type="button"
|
141 | 141 | class="btn btn-primary btn-block"
|
142 | 142 | id="update"
|
143 |
| - on:click={partialUpdate}>Update every 10th row</button |
| 143 | + onclick={partialUpdate}>Update every 10th row</button |
144 | 144 | >
|
145 | 145 | </div>
|
146 | 146 | <div class="col-sm-6 smallpad">
|
147 |
| - <button type="button" class="btn btn-primary btn-block" id="clear" on:click={clear} |
| 147 | + <button type="button" class="btn btn-primary btn-block" id="clear" onclick={clear} |
148 | 148 | >Clear</button
|
149 | 149 | >
|
150 | 150 | </div>
|
|
153 | 153 | type="button"
|
154 | 154 | class="btn btn-primary btn-block"
|
155 | 155 | id="swaprows"
|
156 |
| - on:click={swapRows}>Swap Rows</button |
| 156 | + onclick={swapRows}>Swap Rows</button |
157 | 157 | >
|
158 | 158 | </div>
|
159 | 159 | </div>
|
|
166 | 166 | <tr class={selected === row.id ? 'danger' : ''}
|
167 | 167 | ><td class="col-md-1">{row.id}</td><td class="col-md-4"
|
168 | 168 | ><a
|
169 |
| - on:click={() => { |
| 169 | + onclick={() => { |
170 | 170 | selected = row.id;
|
171 | 171 | }}>{row.label}</a
|
172 | 172 | ></td
|
173 | 173 | ><td class="col-md-1"
|
174 |
| - ><a on:click={() => remove(row)} |
| 174 | + ><a onclick={() => remove(row)} |
175 | 175 | ><span class="glyphicon glyphicon-remove" aria-hidden="true" /></a
|
176 | 176 | ></td
|
177 | 177 | ><td class="col-md-6" /></tr
|
|
0 commit comments