Skip to content

Commit

Permalink
Merge pull request #1 from FissionHQ/development
Browse files Browse the repository at this point in the history
Exported both components from index.js.
  • Loading branch information
rajeshwarpatlolla authored May 3, 2018
2 parents fdd4828 + f53d758 commit 8f46c7e
Show file tree
Hide file tree
Showing 4 changed files with 2,139 additions and 2,129 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Please look at the souce code of the demo [here](https://github.com/rajeshwarpat
**Step 1:**
Once you it install, you can import the `SurveyBuilder` as shown below

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

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

`<SurveyBuilder :options="sampleQuestion" />`
`<SurveyBuilder :options="SurveyBuilderJson" />`

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

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

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)
You can import it like,

You can use it like
`import { QuestionsView } from 'vue-survey-builder';`

and then use it like,

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

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

#### 0.2.0
From this version you can import both `SurveyBuilder` and `QuestionsView` from `vue-survey-builder`.

### To Do
- Support for rating question
- Introduce drag and drop

### Organisation
[Fission Labs](http://fissionlabs.com/)

Expand Down
Loading

0 comments on commit 8f46c7e

Please sign in to comment.