Skip to content

Commit 4dac83a

Browse files
authored
Update README.md
Show that `label` needs to be nested under `templateOptions`
1 parent 6255904 commit 4dac83a

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,25 @@ let vm = new Vue({
3535
{
3636
key: 'name',
3737
type: 'input',
38-
label: 'Your name'
38+
templateOptions: {
39+
label: 'Your name'
40+
}
3941
},
4042
{
4143
key: 'sex',
4244
type: 'select',
43-
label: 'Sex',
44-
options: ['Male', 'Female']
45+
options: ['Male', 'Female'],
46+
templateOptions: {
47+
label: 'Sex'
48+
}
49+
4550
},
4651
{
4752
key: 'comments',
4853
type: 'textarea',
49-
label: 'Comments'
54+
templateOptions: {
55+
label: 'Comments'
56+
}
5057
}
5158
]
5259
},
@@ -145,4 +152,4 @@ These should be added to the `templateOptions` property. Some input types may ha
145152
* [x] Custom attributes
146153
* [x] Custom Classes
147154
* [x] Custom events
148-
* [ ] Handle errors & error classes
155+
* [ ] Handle errors & error classes

0 commit comments

Comments
 (0)