primevue-mirror/apps/showcase/doc/forms/dynamic/DynamicFormLabel.vue

14 lines
280 B
Vue
Raw Normal View History

2024-10-23 04:05:27 +00:00
<template>
<label :for="htmlFor">
<slot />
</label>
</template>
2024-10-23 21:57:52 +00:00
<script setup>
import { computed, inject } from 'vue';
const $fcDynamicFormField = inject('$fcDynamicFormField', undefined);
const htmlFor = computed(() => $fcDynamicFormField?.groupId);
2024-10-23 04:05:27 +00:00
</script>