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