make the boxes toggleable
This commit is contained in:
parent
f9203c83d3
commit
043e32cb67
|
@ -11,11 +11,11 @@ const app = Vue.createApp({
|
||||||
methods: {
|
methods: {
|
||||||
boxSelected(box) {
|
boxSelected(box) {
|
||||||
if (box === "A") {
|
if (box === "A") {
|
||||||
this.boxASelected = true;
|
this.boxASelected = !this.boxASelected;
|
||||||
} else if (box === "B") {
|
} else if (box === "B") {
|
||||||
this.boxBSelected = true;
|
this.boxBSelected = !this.boxBSelected;
|
||||||
} else if (box === "C") {
|
} else if (box === "C") {
|
||||||
this.boxCSelected = true;
|
this.boxCSelected = !this.boxCSelected;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Reference in New Issue