title: Vue.js obtain toggle button value
body: <p>I'm using Vue.js, trying to implement a function on the method's object which obtains the value of a custom Toggle button component each time the user switches between two values <em>Yes</em> or <em>Not</em></p>
  
  <pre><code> &lt;toggle
     :value="user"
     :options="data.users"
     name="user"
     @input="toggleHanler"
     /&gt;
  
  
  methods: {
      toggleHanler (e) {
        this.$store.dispatch('updateUserField', {
          label: e.target.label,
          value: e.target.value
        })
      }
    }
  </code></pre>