Skip to content
Snippets Groups Projects

New: Functionality for adding vocabulary terms to application profiles

Merged Benedikt Heinrichs requested to merge Topic/1558-vocabAddition into Product/1464-uiFrame
8 files
+ 143
195
Compare changes
  • Side-by-side
  • Inline
Files
8
<template>
<template>
<ul>
<ul>
<li
<li v-for="vocabularyTerm in vocabularyTerms" :key="vocabularyTerm.uri">
v-for="vocabularyTerm in vocabularyTerms"
{{ vocabularyTerm.prefix !== null ? vocabularyTerm.prefix + ":" : ""
:key="vocabularyTerm.property"
}}{{ vocabularyTerm.property }}
>
<b-button @click="addVocabularyTerm(vocabularyTerm)">Add</b-button>
{{ vocabularyTerm.property }}
</li>
</li>
</ul>
</ul>
</template>
</template>
@@ -22,6 +21,11 @@ export default Vue.extend({
@@ -22,6 +21,11 @@ export default Vue.extend({
type: Array as PropType<VocabularyTerm[]>,
type: Array as PropType<VocabularyTerm[]>,
},
},
},
},
 
methods: {
 
addVocabularyTerm(vocabularyTerm: VocabularyTerm) {
 
this.$emit("addVocabularyTerm", vocabularyTerm);
 
},
 
},
});
});
</script>
</script>
Loading