Updated TheTool Frontend Framework & Table

This commit is contained in:
Luca Haid
2024-05-08 12:54:26 +00:00
parent 1e57d983b7
commit 58e124a461
46 changed files with 1364 additions and 2535 deletions
@@ -0,0 +1,28 @@
Vue.component('tt-textarea', {
props: {
label: String,
required: Boolean,
value: String,
rows: {
type: String,
default: "3",
}
},
data() {
return {
currentText: this.value,
};
},
watch: {
value(newValue) {
this.currentText = newValue;
},
},
template: `
<div class="form-group">
<label :for="label">{{ label }}</label>
<textarea class="form-control" :id="label" :required="required" v-model="currentText"
@input="$emit('input', $event.target.value)" :rows="rows"></textarea>
</div>
`
});