replace options component created
This commit is contained in:
parent
c14031661d
commit
2bb7d5985c
5 changed files with 26 additions and 5 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<buttonQuestion class="radioQuestion"
|
<buttonQuestion class="radioQuestion"
|
||||||
|
isVehicleQuestion
|
||||||
:questionText="questionText"
|
:questionText="questionText"
|
||||||
:answers="makes"
|
:answers="makes"
|
||||||
groupName="Choose Vehicle Make"
|
groupName="Choose Vehicle Make"
|
||||||
textPosition="text-start"
|
textPosition="text-start"
|
||||||
:isVehicleQuestion="true"
|
|
||||||
:loaderEnabled="true"
|
:loaderEnabled="true"
|
||||||
v-model="modelValue"
|
v-model="modelValue"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<buttonQuestion class="radioQuestion"
|
<buttonQuestion class="radioQuestion"
|
||||||
|
isVehicleQuestion
|
||||||
:questionText="questionText"
|
:questionText="questionText"
|
||||||
:answers="models"
|
:answers="models"
|
||||||
groupName="Choose Vehicle Model"
|
groupName="Choose Vehicle Model"
|
||||||
textPosition="text-start"
|
textPosition="text-start"
|
||||||
:isVehicleQuestion="true"
|
|
||||||
:loaderEnabled="true"
|
:loaderEnabled="true"
|
||||||
v-model="modelValue"
|
v-model="modelValue"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<buttonQuestion class="radioQuestion"
|
<buttonQuestion class="radioQuestion"
|
||||||
|
isVehicleQuestion
|
||||||
:questionText="questionText"
|
:questionText="questionText"
|
||||||
:answers="styles"
|
:answers="styles"
|
||||||
groupName="Choose Vehicle Style"
|
groupName="Choose Vehicle Style"
|
||||||
textPosition="text-start"
|
textPosition="text-start"
|
||||||
:isVehicleQuestion="true"
|
|
||||||
:loaderEnabled="true"
|
:loaderEnabled="true"
|
||||||
v-model="modelValue"
|
v-model="modelValue"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<buttonQuestion class="radioQuestion"
|
<buttonQuestion class="radioQuestion"
|
||||||
|
isVehicleQuestion
|
||||||
:questionText="questionText"
|
:questionText="questionText"
|
||||||
:answers="years"
|
:answers="years"
|
||||||
groupName="Choose Vehicle Year"
|
groupName="Choose Vehicle Year"
|
||||||
:isVehicleQuestion="true"
|
|
||||||
textPosition="text-start"
|
textPosition="text-start"
|
||||||
:loaderEnabled="true"
|
:loaderEnabled="true"
|
||||||
v-model="modelValue"
|
v-model="modelValue"
|
||||||
|
|
@ -26,6 +26,7 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
modelValue: String,
|
modelValue: String,
|
||||||
},
|
},
|
||||||
|
emits: ['update:modelValue'],
|
||||||
components: {
|
components: {
|
||||||
buttonQuestion,
|
buttonQuestion,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,17 @@
|
||||||
|
<template>
|
||||||
|
<div class="replace-options-question">
|
||||||
|
<buttonQestion
|
||||||
|
v-if="isAvailable"
|
||||||
|
:isMultiSelect="isMultiSelect"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import buttonQuestion from "@/common-components/button-question/button-question";
|
||||||
|
|
||||||
export default ({
|
export default ({
|
||||||
name: "replace-options-question",
|
name: "replaceOptionsQuestion",
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
questionText: String,
|
questionText: String,
|
||||||
|
|
@ -13,6 +23,16 @@ export default ({
|
||||||
isMultiSelect: Boolean,
|
isMultiSelect: Boolean,
|
||||||
isAvailable: Boolean,
|
isAvailable: Boolean,
|
||||||
filterByVehicleCategory: Boolean
|
filterByVehicleCategory: Boolean
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initializeComponent(cmsContent, replaceOptions){
|
||||||
|
this.questionText = cmsContent.QuestionText;
|
||||||
|
this.answersFromCms = cmsContent.Answers;
|
||||||
|
this.replaceOptions = replaceOptions;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
buttonQuestion,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue