Skip to content

Commit a406d9f

Browse files
committed
Revert Questionnaire example
1 parent 3f6df70 commit a406d9f

File tree

1 file changed

+1
-48
lines changed

1 file changed

+1
-48
lines changed

examples/questionnaire/Example.vue

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
7171
// Import necessary components and classes
7272
import FlowForm from '../../src/components/FlowForm.vue'
73-
import QuestionModel, { QuestionType, ChoiceOption, LinkOption, MatrixColumn, MatrixRow } from '../../src/models/QuestionModel'
73+
import QuestionModel, { QuestionType, ChoiceOption, LinkOption } from '../../src/models/QuestionModel'
7474
import LanguageModel from '../../src/models/LanguageModel'
7575
// If using the npm package, use the following line instead of the ones above.
7676
// import FlowForm, { QuestionModel, QuestionType, ChoiceOption, LanguageModel } from '@ditdot-dev/vue-flow-form'
@@ -89,53 +89,6 @@
8989
language: new LanguageModel(),
9090
// Create question list with QuestionModel instances
9191
questions: [
92-
new QuestionModel({
93-
id: 'matrix',
94-
title: 'Matrix question:',
95-
type: QuestionType.Matrix,
96-
multiple: false,
97-
required: false,
98-
columns: [
99-
new MatrixColumn({
100-
value: "1",
101-
label: "Very dissatisfied"
102-
}),
103-
new MatrixColumn({
104-
value: "2",
105-
label: "Dissatisfied"
106-
}),
107-
new MatrixColumn({
108-
value: "3",
109-
label: "Neutral"
110-
}),
111-
new MatrixColumn({
112-
value: "4",
113-
label: "Satisfied"
114-
}),
115-
new MatrixColumn({
116-
value: "5",
117-
label: "Very satisfied"
118-
})
119-
],
120-
rows: [
121-
new MatrixRow({
122-
id: "product 1",
123-
label: "Product 1"
124-
}),
125-
new MatrixRow({
126-
id: "product 2",
127-
label: "Product 2"
128-
}),
129-
new MatrixRow({
130-
id: "product 3",
131-
label: "Product 3"
132-
}),
133-
new MatrixRow({
134-
id: "product 4",
135-
label: "Product 4"
136-
})
137-
]
138-
}),
13992
new QuestionModel({
14093
id: 'first_name',
14194
tagline: 'Hi! Welcome to our demo survey 😊',

0 commit comments

Comments
 (0)