v-model
This commit is contained in:
parent
5a6acf7bce
commit
b588fce5ee
1 changed files with 7 additions and 5 deletions
|
|
@ -1,12 +1,13 @@
|
|||
<template>
|
||||
<p>Select your current {{ colorQuestionText }} color:</p>
|
||||
<div aria-labelledby="test" role="radiogroup">
|
||||
<div v-for="(value, name, index) in featureListData" :key="name">
|
||||
<listCard isRadio :buttonImage="require(`@/assets/img/tints/${getTintImage(glassName, name)}`)" :buttonLabel="name" altText="" :buttonID="`${name-index}`" />
|
||||
|
||||
<buttonQuestion buttonType="radio" class="radioQuestion" questionText="ok now select your features" :answers="value" textPosition="text-start" :loaderEnabled=false isRequired=true :groupName="name" />
|
||||
</div>
|
||||
<div v-for="(value, name, index) in featureListData" :key="index">
|
||||
<listCard isRadio isWide :buttonImage="require(`@/assets/img/tints/${getTintImage(glassName, name)}`)" :buttonLabel="name" altText="" :buttonID="`${name}-${index}`" groupName="test" />
|
||||
|
||||
<buttonQuestion v-model="inputParams['question'+index]" buttonType="radio" class="radioQuestion" questionText="ok now select your features" :answers="value" textPosition="text-start" :loaderEnabled=false isRequired=true :groupName="name" />
|
||||
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
@ -23,6 +24,7 @@ export default {
|
|||
return {
|
||||
glassColorQuestion: String,
|
||||
glassFeatureQuestion: String,
|
||||
inputParams: []
|
||||
};
|
||||
},
|
||||
props: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue