WIP
This commit is contained in:
parent
0c5ac3ef69
commit
04c241b118
2 changed files with 11 additions and 11 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="textarea-question">
|
||||
<label for="textarea-comments" class="fw-bold mb-1">{{ labelText }} <span class="fw-normal">{{ labelTextOptional }}</span></label>
|
||||
<label for="textarea-comments" class="fw-bold mb-1">{{ labelText }} <span v-if="isRequired" class="fw-normal">(Optional)</span></label>
|
||||
<textarea
|
||||
id="textarea-comments"
|
||||
class="p-4"
|
||||
|
|
@ -9,8 +9,8 @@
|
|||
contenteditable="true"
|
||||
aria-multiline="true"
|
||||
aria-required="false"></textarea>
|
||||
<p tabindex="0" v-show="footerText" class="caption mt-2 mb-0" id="charactersremaining">
|
||||
{{ textAreaFooterText }}
|
||||
<p tabindex="0" class="caption mt-2 mb-0" id="charactersremaining">
|
||||
250/250 characters remaining
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -19,6 +19,10 @@
|
|||
export default {
|
||||
name: "textareaquestion",
|
||||
props: {
|
||||
cmsWidgetName: String,
|
||||
isRequired: Boolean,
|
||||
maxLength: Number,
|
||||
modelValue: String,
|
||||
labelText: String,
|
||||
labelTextOptional: String,
|
||||
textAreaFooterText: String,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
<template>
|
||||
<textareaquestion
|
||||
cmsWidgetName="CustomerDetailsTextAreaLabelText"
|
||||
:labelText=textAreaLabelCopy
|
||||
:labelTextOptional=textAreaLabelCopyOptional
|
||||
:labelText="textAreaLabelCopy"
|
||||
:labelTextOptional="textAreaLabelCopyOptional"
|
||||
textAreaLabelText
|
||||
textAreaFooterText="250/250 characters remaining"
|
||||
footerText
|
||||
isRequired
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
|
@ -43,10 +42,7 @@ export default {
|
|||
computed: {
|
||||
textAreaLabelCopy() {
|
||||
return this.getCmsContent("CustomerDetailsTextAreaLabelText", "HeaderText");
|
||||
},
|
||||
textAreaLabelCopyOptional() {
|
||||
return this.getCmsContent("CustomerDetailsTextAreaLabelText", "SubheaderText");
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue