Add save event listener to save button

This commit is contained in:
Finn 2021-08-21 19:58:03 +02:00
parent 3e9484484d
commit 2538c745a7

View file

@ -3,10 +3,12 @@
<h2>Ticket "ding"</h2> <h2>Ticket "ding"</h2>
<HeaderlessKeyValueTable :data-rows="{Name: 'Bernd', Status: 'Offen', Ablaufdatum: 'gestern'}" /> <HeaderlessKeyValueTable :data-rows="{Name: 'Bernd', Status: 'Offen', Ablaufdatum: 'gestern'}" />
<br> <br>
<label for="descripton">Beschreibung</label> <label for="description">Beschreibung</label>
<textarea id="descripton" v-model="description" /> <textarea id="description" v-model.trim.lazy="description" />
<br> <br>
<button>Speichern</button> <button @click="save">
Speichern
</button>
<hr> <hr>
</div> </div>
</template> </template>
@ -16,6 +18,14 @@ import HeaderlessKeyValueTable from './components/HeaderlessKeyValueTable'
export default { export default {
name: 'Ticket', name: 'Ticket',
components: { HeaderlessKeyValueTable }, components: { HeaderlessKeyValueTable },
data() {
return {
description: '',
}
},
methods: {
save() {},
},
} }
</script> </script>