Add save event listener to save button

This commit is contained in:
Finn 2021-08-21 19:58:03 +02:00 committed by Benedikt Ziemons
parent 742168215f
commit 92a41e4865
Signed by: ben
GPG key ID: 0F54A7ED232D3319

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>