Mercurial > gemma
comparison client/src/layers/Layerselect.vue @ 585:ef307bd6b5d8
refac: restructured client application
To make the application more accessible for developers, the structure was reorganized.
Instead of sticking to technical terminology, the application terminology is according to the domain:
I.e. "map" contains everything regarding map (including store).
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 07 Sep 2018 11:13:56 +0200 |
parents | |
children | d4fa28bfa6ec |
comparison
equal
deleted
inserted
replaced
584:8b66a10aaf8a | 585:ef307bd6b5d8 |
---|---|
1 <template> | |
2 <div class="form-check d-flex flex-row"> | |
3 <input class="form-check-input" @change="visibilityToggled" :id="layername" type="checkbox" :checked="isVisible"> | |
4 <label class="form-check-label" :for="layername">{{this.layername}}</label> | |
5 </div> | |
6 </template> | |
7 | |
8 <style lang="sass"> | |
9 | |
10 </style> | |
11 | |
12 | |
13 <script> | |
14 export default { | |
15 props: ["layername", "layerindex", "isVisible"], | |
16 name: "layerselect", | |
17 methods: { | |
18 visibilityToggled() { | |
19 this.$emit("visibilityToggled", this.layerindex); | |
20 } | |
21 } | |
22 }; | |
23 </script> |