Skip to content

Commit

Permalink
Merge pull request #259 from ditdot-dev/feature/opinion-scale-question
Browse files Browse the repository at this point in the history
Feature/opinion scale question
  • Loading branch information
phre1 authored Jul 29, 2022
2 parents 0a6d282 + edd3d5c commit b1e4d56
Show file tree
Hide file tree
Showing 10 changed files with 474 additions and 29 deletions.
21 changes: 20 additions & 1 deletion examples/questionnaire/Example.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
title: 'Tell us what is your favorite social network hangout.',
helpTextShow: false,
type: QuestionType.MultiplePictureChoice,
multiple: false,
multiple: true,
required: true,
options: [
new ChoiceOption({
Expand Down Expand Up @@ -150,6 +150,24 @@
required: true,
placeholder: 'Start typing here...'
}),
new QuestionModel({
id: 'icon_rate',
tagline: "Thanks for that. Now, let's give it some ⭐ rating",
title: 'How good was the last movie you watched?',
type: QuestionType.IconRate,
required: true,
max: 5
}),
new QuestionModel({
id: 'opinion_scale',
title: 'Choose a number to express your opinion 👇',
subtitle: 'You can also use ⌨️ numbers to select an option',
type: QuestionType.OpinionScale,
required: true,
max: 5,
labelLeft: 'Dissapointing',
labelRight: 'Exceptional'
}),
new QuestionModel({
id: 'multiple_choice',
tagline: 'FYI, You can always go back 👈, use the up arrow on the bottom.',
Expand Down Expand Up @@ -193,6 +211,7 @@
})
]
}),
new QuestionModel({
id: 'break_1',
title: 'Awesome, thank you. 🙏',
Expand Down
11 changes: 10 additions & 1 deletion examples/support-page/Example.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,16 @@
required: true,
placeholder: 'Start typing here...',
model: ''
}
},
{
type: 'iconrate',
id: 'icon_rate',
tagline: "One more thing before you go",
title: 'How would you rate our service?',
required: false,
max: 5,
model: ''
},
]
}
},
Expand Down
Loading

0 comments on commit b1e4d56

Please sign in to comment.