Skip to content

Commit b1e4d56

Browse files
authored
Merge pull request #259 from ditdot-dev/feature/opinion-scale-question
Feature/opinion scale question
2 parents 0a6d282 + edd3d5c commit b1e4d56

File tree

10 files changed

+474
-29
lines changed

10 files changed

+474
-29
lines changed

examples/questionnaire/Example.vue

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
title: 'Tell us what is your favorite social network hangout.',
112112
helpTextShow: false,
113113
type: QuestionType.MultiplePictureChoice,
114-
multiple: false,
114+
multiple: true,
115115
required: true,
116116
options: [
117117
new ChoiceOption({
@@ -150,6 +150,24 @@
150150
required: true,
151151
placeholder: 'Start typing here...'
152152
}),
153+
new QuestionModel({
154+
id: 'icon_rate',
155+
tagline: "Thanks for that. Now, let's give it some ⭐ rating",
156+
title: 'How good was the last movie you watched?',
157+
type: QuestionType.IconRate,
158+
required: true,
159+
max: 5
160+
}),
161+
new QuestionModel({
162+
id: 'opinion_scale',
163+
title: 'Choose a number to express your opinion 👇',
164+
subtitle: 'You can also use ⌨️ numbers to select an option',
165+
type: QuestionType.OpinionScale,
166+
required: true,
167+
max: 5,
168+
labelLeft: 'Dissapointing',
169+
labelRight: 'Exceptional'
170+
}),
153171
new QuestionModel({
154172
id: 'multiple_choice',
155173
tagline: 'FYI, You can always go back 👈, use the up arrow on the bottom.',
@@ -193,6 +211,7 @@
193211
})
194212
]
195213
}),
214+
196215
new QuestionModel({
197216
id: 'break_1',
198217
title: 'Awesome, thank you. 🙏',

examples/support-page/Example.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,16 @@
152152
required: true,
153153
placeholder: 'Start typing here...',
154154
model: ''
155-
}
155+
},
156+
{
157+
type: 'iconrate',
158+
id: 'icon_rate',
159+
tagline: "One more thing before you go",
160+
title: 'How would you rate our service?',
161+
required: false,
162+
max: 5,
163+
model: ''
164+
},
156165
]
157166
}
158167
},

0 commit comments

Comments
 (0)