|
69 | 69 |
|
70 | 70 | // Import necessary components and classes |
71 | 71 | import FlowForm from '../../src/components/FlowForm.vue' |
72 | | - import QuestionModel, { QuestionType, ChoiceOption } from '../../src/models/QuestionModel' |
| 72 | + import QuestionModel, { QuestionType, ChoiceOption, LinkOption } from '../../src/models/QuestionModel' |
73 | 73 | import LanguageModel from '../../src/models/LanguageModel' |
74 | 74 | // If using the npm package, use the following line instead of the ones above. |
75 | 75 | // import FlowForm, { QuestionModel, QuestionType, ChoiceOption, LanguageModel } from '@ditdot-dev/vue-flow-form' |
|
88 | 88 | questions: [ |
89 | 89 | new QuestionModel({ |
90 | 90 | id: 'first_name', |
91 | | - tagline: "Hi! Welcome to our demo survey 😊", |
| 91 | + tagline: 'Hi! Welcome to our demo survey 😊', |
92 | 92 | title: 'What is your first name?', |
93 | 93 | type: QuestionType.Text, |
94 | 94 | required: true, |
|
97 | 97 | new QuestionModel({ |
98 | 98 | id: 'email', |
99 | 99 | tagline: "Nice to meet you 👀, let's continue", |
100 | | - title: "Provide an example email.", |
| 100 | + title: 'Provide an example email.', |
101 | 101 | type: QuestionType.Email, |
102 | 102 | required: true, |
103 | 103 | placeholder: 'Start typing here...' |
|
118 | 118 | }), |
119 | 119 | new QuestionModel({ |
120 | 120 | id: 'multiple_choice', |
121 | | - tagline: "FYI, You can always go back 👈, use the up arrow on the bottom.", |
| 121 | + tagline: 'FYI, You can always go back 👈, use the up arrow on the bottom.', |
122 | 122 | title: 'Multiple choice question:', |
123 | 123 | helpTextShow: false, |
124 | 124 | type: QuestionType.MultipleChoice, |
|
168 | 168 | }), |
169 | 169 | new QuestionModel({ |
170 | 170 | id: 'choose_path', |
171 | | - tagline: "Where would you like to go? 🤔", |
| 171 | + tagline: 'Where would you like to go? 🤔', |
172 | 172 | title: 'Choose your path:', |
173 | 173 | type: QuestionType.Dropdown, |
174 | 174 | multiple: false, |
|
199 | 199 | }), |
200 | 200 | new QuestionModel({ |
201 | 201 | id: 'path_b', |
202 | | - tagline: "Path B", |
| 202 | + tagline: 'Path B', |
203 | 203 | title: 'Hmm, are you sure?', |
204 | 204 | helpText: 'Path A sounds like a winner! 😉', |
205 | 205 | type: QuestionType.MultipleChoice, |
|
0 commit comments