We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ebf68 commit 966d5b0Copy full SHA for 966d5b0
docs/api/ui-schema.md
@@ -2,14 +2,36 @@
2
3
An array of [fields](ui-schema/field.md).
4
5
+## Example
6
+
7
```js
8
data() {
9
return {
- uiSchema: [{
- component: 'div'
10
- }, {
11
- component: MyCustomComponent,
12
- }]
+ uiSchema: [
+ {
+ component: 'div',
13
+ fieldOptions: {
14
+ class: ['form-group']
15
+ },
16
+ children: [
17
18
+ component: 'input',
19
+ model: 'firstName',
20
21
+ on: ['input']
22
+ }
23
24
+ ]
25
26
27
}
28
29
```
30
31
+The example above will do essentially the same thing as the following Vue template:
32
33
+```html
34
+<div class="form-group">
35
+ <input v-model="model.firstName" />
36
+</div>
37
+```
0 commit comments