Skip to content

Commit 8f46c7e

Browse files
Merge pull request #1 from FissionHQ/development
Exported both components from index.js.
2 parents fdd4828 + f53d758 commit 8f46c7e

File tree

4 files changed

+2139
-2129
lines changed

4 files changed

+2139
-2129
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Please look at the souce code of the demo [here](https://github.com/rajeshwarpat
1313
**Step 1:**
1414
Once you it install, you can import the `SurveyBuilder` as shown below
1515

16-
`import SurveyBuilder from 'SurveyBuilder';`
16+
`import { SurveyBuilder, SurveyBuilderJson } from 'vue-survey-builder';`
1717

1818
**Step 2:**
1919
Then you can use it in your vue component, as shown below
2020

21-
`<SurveyBuilder :options="sampleQuestion" />`
21+
`<SurveyBuilder :options="SurveyBuilderJson" />`
2222

2323
Here `sampleQuestion` can be the json, which is [here](https://github.com/FissionHQ/vue-survey-builder/blob/master/src/survey-builder.json)
2424

@@ -42,9 +42,11 @@ You can refer the sample code in the [demo repository](https://github.com/rajesh
4242
**Step 4:**
4343
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.
4444

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,
4646

47-
You can use it like
47+
`import { QuestionsView } from 'vue-survey-builder';`
48+
49+
and then use it like,
4850

4951
`<QuestionsView :questions="questionsList" :readOnly="true" />`
5052

@@ -88,6 +90,13 @@ This version is the initial release of this open source project. It has all the
8890
- Support for rating question
8991
- Introduce drag and drop
9092

93+
#### 0.2.0
94+
From this version you can import both `SurveyBuilder` and `QuestionsView` from `vue-survey-builder`.
95+
96+
### To Do
97+
- Support for rating question
98+
- Introduce drag and drop
99+
91100
### Organisation
92101
[Fission Labs](http://fissionlabs.com/)
93102

0 commit comments

Comments
 (0)