File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 <IconPencil :size =" 20" />
3535 </template >
3636 </NcActionInput >
37- <NcActionInput >
37+ <NcActionInput
38+ v-model =" labelLowest"
39+ :label =" t('forms', 'Label for lowest value')"
40+ label-outside
41+ :show-trailing-button =" false" >
3842 <template #icon >
3943 <IconPencil :size =" 20" />
4044 </template >
4145 {{ t('forms', 'Label for lowest value') }}
4246 </NcActionInput >
43- <NcActionInput >
47+ <NcActionInput
48+ v-model =" labelHighest"
49+ :label =" t('forms', 'Label for highest value')"
50+ label-outside
51+ :show-trailing-button =" false" >
4452 <template #icon >
4553 <IconPencil :size =" 20" />
4654 </template >
4957 </template >
5058
5159 <div class =" question__content" >
60+ <template v-if =" labelLowest !== ' ' " >{{ labelLowest }}</template >
5261 <NcCheckboxRadioSwitch
5362 v-for =" option in scaleOptions"
5463 :key =" option"
6574 @keydown.enter.exact.prevent =" onKeydownEnter" >
6675 {{ option }}
6776 </NcCheckboxRadioSwitch >
77+ <template v-if =" labelHighest !== ' ' " >{{ labelHighest }}</template >
6878 </div >
6979 </Question >
7080</template >
@@ -95,6 +105,8 @@ export default {
95105
96106 lowestOption: 1 ,
97107 highestOption: 5 ,
108+ labelLowest: ' Lowest' ,
109+ labelHighest: ' Highest' ,
98110 }
99111 },
100112
@@ -147,4 +159,13 @@ export default {
147159}
148160< / script>
149161
150- < style lang= " scss" scoped>< / style>
162+ < style lang= " scss" scoped>
163+ .question__content {
164+ all: unset;
165+ display: flex;
166+ flex- direction: row;
167+ justify- content: center;
168+ width: 100 % ;
169+ align- items: center;
170+ }
171+ < / style>
You can’t perform that action at this time.
0 commit comments