mercredi 28 juillet 2021

Vue JS - Checkbox / if Checked do This if unchecked do that

im trying to create a checkbox that runs one function when it is initaly checked and runs another when it is then unchecked.

here something ive tryied out theres also a variable that already has been read out and represents the current status

   <input type="checkbox" :checked="e.Processed == true" v-model="toggle" true-value= functionTrue false-value="no">



Aucun commentaire:

Enregistrer un commentaire