* Add new Gauge component Co-authored-by: Charles Hacskaylo <charlesh88@gmail.com> Co-authored-by: Jamie V <jamie.j.vigliotta@nasa.gov> Co-authored-by: John Hill <john.c.hill@nasa.gov> Co-authored-by: Andrew Henry <akhenry@gmail.com>
20 lines
365 B
JavaScript
20 lines
365 B
JavaScript
export default {
|
|
data() {
|
|
return {
|
|
isChecked: false
|
|
};
|
|
},
|
|
methods: {
|
|
toggleCheckBox(event) {
|
|
this.isChecked = !this.isChecked;
|
|
|
|
const data = {
|
|
model: this.model,
|
|
value: this.isChecked
|
|
};
|
|
|
|
this.$emit('onChange', data);
|
|
}
|
|
}
|
|
};
|