Skip to content

Commit ce82801

Browse files
committed
Update README.md
1 parent 259056e commit ce82801

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

README.md

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# Vue Form
1+
# Vue Flow Form
22

33
<p align="center">
44
<img src="https://www.ditdot.hr/demo/v-form/visuals/v-form-green-full-rotate-01.png" alt="v-form screenshots">
55
</p>
66

7-
87
## Demo
98

109
* [Questionnaire example](https://www.ditdot.hr)
@@ -57,14 +56,14 @@ Made with [Vue.js](https://vuejs.org/)
5756
## Usage as npm package
5857

5958
```shell
60-
npm install vue-flow-form --save
59+
npm install @ditdot-dev/vue-flow-form --save
6160
```
6261

6362
And then in your App.vue file:
6463

6564
```vue
6665
<template>
67-
<flow-form v-bind:questions="questions" />
66+
<flow-form v-bind:questions="questions" />
6867
</template>
6968
7069
<script>
@@ -81,6 +80,15 @@ And then in your App.vue file:
8180
return {
8281
questions: [
8382
// QuestioModel array
83+
new QuestionModel({
84+
question: '...',
85+
type: QuestionType.MultipleChoice,
86+
options: [
87+
new ChoiceOption({
88+
label: '...'
89+
})
90+
]
91+
})
8492
]
8593
}
8694
}
@@ -93,15 +101,22 @@ And then in your App.vue file:
93101
HTML:
94102

95103
```html
96-
...
97-
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.6/vue.min.js"></script>
98-
<!-- Flow Form -->
99-
<script src="https://unpkg.com/@ditdot-dev/vue-flow-form"></script>
100-
<!-- Flow Form base CSS -->
101-
<link rel="stylesheet" href="https://unpkg.com/@ditdot-dev/vue-flow-form/dist/vue-flow-form.min.css">
102-
<!-- Optional theme.css -->
103-
<link rel="stylesheet" href="https://unpkg.com/@ditdot-dev/vue-flow-form/dist/vue-flow-form.theme.css">
104-
...
104+
<html>
105+
<head>
106+
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.6/vue.min.js"></script>
107+
<!-- Flow Form -->
108+
<script src="https://unpkg.com/@ditdot-dev/vue-flow-form"></script>
109+
<!-- Flow Form base CSS -->
110+
<link rel="stylesheet" href="https://unpkg.com/@ditdot-dev/vue-flow-form/dist/vue-flow-form.min.css">
111+
<!-- Optional theme.css -->
112+
<link rel="stylesheet" href="https://unpkg.com/@ditdot-dev/vue-flow-form/dist/vue-flow-form.theme.css">
113+
</head>
114+
<body>
115+
<div id="app">
116+
<flow-form v-bind:questions="questions" />
117+
</div>
118+
</body>
119+
</html>
105120
```
106121

107122
JavaScript:

0 commit comments

Comments
 (0)