You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,12 @@ Please look at the souce code of the demo [here](https://github.com/rajeshwarpat
13
13
**Step 1:**
14
14
Once you it install, you can import the `SurveyBuilder` as shown below
15
15
16
-
`import SurveyBuilderfrom 'SurveyBuilder';`
16
+
`import { SurveyBuilder, SurveyBuilderJson } from 'vue-survey-builder';`
17
17
18
18
**Step 2:**
19
19
Then you can use it in your vue component, as shown below
20
20
21
-
`<SurveyBuilder :options="sampleQuestion" />`
21
+
`<SurveyBuilder :options="SurveyBuilderJson" />`
22
22
23
23
Here `sampleQuestion` can be the json, which is [here](https://github.com/FissionHQ/vue-survey-builder/blob/master/src/survey-builder.json)
24
24
@@ -42,9 +42,11 @@ You can refer the sample code in the [demo repository](https://github.com/rajesh
42
42
**Step 4:**
43
43
You can add your own logic in your component to show the list of question in read only and edit mode. There is a component to show the list of questions, which will be available in the [demo source code](https://github.com/FissionHQ/vue-survey-builder/blob/master/src/QuestionsView.vue). Please use this component called `QuestionsView` in case, you want to show the list of questions added.
44
44
45
-
In the next version, this component will be available as part of the vue-survey-builder itself. Refer demo code [here](https://github.com/rajeshwarpatlolla/vue-survey-builder-test/blob/master/src/components/TestSurveyBuilder.vue#L5)
45
+
You can import it like,
46
46
47
-
You can use it like
47
+
`import { QuestionsView } from 'vue-survey-builder';`
0 commit comments