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>
<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>