Welcome to mirror list, hosted at ThFree Co, Russian Federation.

toggle-check-box-mixin.js « forms « api « src - github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f15c344039ce13e0891e86b6a1b6094af4f48602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
        }
    }
};