Skip to content

Commit b7f34a9

Browse files
committed
Update GUIDE.md
1 parent fcffe50 commit b7f34a9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

GUIDE.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@
6464
* can be either a raw HTML string or a render function
6565
* if passing a render function, it needs to have `h` as the first argument, eg.:
6666

67-
```js
67+
```js
6868
content: function(h) {
6969
return <div> ... </div>
7070
}
71-
```
71+
```
7272
* `required` - is field required or not (true/false - default is false)
7373
* turn on/off the `required` asterisk next to the question in vue-form/src/assets/css/common.css:
74-
75-
```css
74+
75+
```css
7676
.f-required {
7777
display: inline; /* or display: none; to turn off */
7878
}
79-
```
79+
```
8080
* `options` - `ChoiceOption` array (used only with Dropdown and MultipleChoice)
8181
* `ChoiceOption` must have a `label` defined (this is what will be shown to the user)
8282
* if `value` is not defined, `label` will be used
@@ -116,11 +116,11 @@
116116
* `submit` - when the default "submit" button is clicked - if you override the default `completeButton` slot, this event won't be called
117117
(example in Example.vue)
118118
119-
```js
120-
function onSubmit(questionList) {
121-
// Handle submit event.
122-
}
123-
```
119+
```js
120+
function onSubmit(questionList) {
121+
// Handle submit event.
122+
}
123+
```
124124
125125
## Survey component slots:
126126

0 commit comments

Comments
 (0)