mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Add forms
demo page
This commit is contained in:
parent
9f8003ad9d
commit
4929f978f2
24 changed files with 3002 additions and 22 deletions
21
apps/showcase/doc/forms/dynamic/DynamicFormLabel.vue
Normal file
21
apps/showcase/doc/forms/dynamic/DynamicFormLabel.vue
Normal file
|
@ -0,0 +1,21 @@
|
|||
<template>
|
||||
<label :for="htmlFor">
|
||||
<slot />
|
||||
</label>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'DynamicFormLabel',
|
||||
inject: {
|
||||
$fcDynamicFormField: {
|
||||
default: undefined
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
htmlFor() {
|
||||
return this.$fcDynamicFormField?.$props.groupId;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue