@@ -18,26 +18,30 @@ <h1>sprae</h1>
18
18
< div class ="col-md-6 ">
19
19
< div class ="row ">
20
20
< div class ="col-sm-6 smallpad ">
21
- < button @click =" run() " type ="button " class ="btn btn-primary btn-block " id ="run "> Create 1,000
21
+ < button :onclick =" e => run() " type ="button " class ="btn btn-primary btn-block " id ="run "> Create 1,000
22
22
rows</ button >
23
23
</ div >
24
24
< div class ="col-sm-6 smallpad ">
25
- < button @click ="runLots() " type ="button " class ="btn btn-primary btn-block " id ="runlots "> Create 10,000
25
+ < button :onclick ="e => runLots() " type ="button " class ="btn btn-primary btn-block " id ="runlots "> Create
26
+ 10,000
26
27
rows</ button >
27
28
</ div >
28
29
< div class ="col-sm-6 smallpad ">
29
- < button @click =" add() " type ="button " class ="btn btn-primary btn-block " id ="add "> Append 1,000
30
+ < button :onclick =" e => add() " type ="button " class ="btn btn-primary btn-block " id ="add "> Append 1,000
30
31
rows</ button >
31
32
</ div >
32
33
< div class ="col-sm-6 smallpad ">
33
- < button @click ="update() " type ="button " class ="btn btn-primary btn-block " id ="update "> Update every 10th
34
+ < button :onclick ="e => update() " type ="button " class ="btn btn-primary btn-block " id ="update "> Update
35
+ every 10th
34
36
row</ button >
35
37
</ div >
36
38
< div class ="col-sm-6 smallpad ">
37
- < button @click ="clear() " type ="button " class ="btn btn-primary btn-block " id ="clear "> Clear</ button >
39
+ < button :onclick ="e => clear() " type ="button " class ="btn btn-primary btn-block "
40
+ id ="clear "> Clear</ button >
38
41
</ div >
39
42
< div class ="col-sm-6 smallpad ">
40
- < button @click ="swap() " type ="button " class ="btn btn-primary btn-block " id ="swaprows "> Swap Rows</ button >
43
+ < button :onclick ="e => swap() " type ="button " class ="btn btn-primary btn-block " id ="swaprows "> Swap
44
+ Rows</ button >
41
45
</ div >
42
46
</ div >
43
47
</ div >
@@ -47,11 +51,12 @@ <h1>sprae</h1>
47
51
< tr :each ="item in rows " :class ="selected && item.id == selected.id ? 'danger' : '' ">
48
52
< td class ="col-md-1 " :text ="item.id "> </ td >
49
53
< td class ="col-md-4 ">
50
- < a role ="select " @click =" select(item) " :text ="item.label "> </ a >
54
+ < a role ="select " :onclick =" e => select(item) " :text ="item.label "> </ a >
51
55
</ td >
52
56
< td class ="col-md-1 ">
53
57
< a >
54
- < span role ="delete " @click ="remove(item) " class ="glyphicon glyphicon-remove " aria-hidden ="true "> </ span >
58
+ < span role ="delete " :onclick ="e => remove(item) " class ="glyphicon glyphicon-remove "
59
+ aria-hidden ="true "> </ span >
55
60
</ a >
56
61
</ td >
57
62
< td class ="col-md-6 "> </ td >
0 commit comments